-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #549 from java-native-access/fix-pictformat-struct
Fix PictFormat assignment error in X11 libraries
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
contrib/platform/test/com/sun/jna/platform/unix/X11Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* Copyright (c) 2015 Timothy Wall, All Rights Reserved | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* <p/> | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
*/ | ||
package com.sun.jna.platform.unix; | ||
|
||
import junit.framework.TestCase; | ||
|
||
/** | ||
* Exercise the {@link X11} class. | ||
* | ||
* @author twalljava@java.net | ||
*/ | ||
// @SuppressWarnings("unused") | ||
public class X11Test extends TestCase { | ||
|
||
public void testXrender() { | ||
X11.Xrender.XRenderPictFormat s = new X11.Xrender.XRenderPictFormat(); | ||
s.getPointer().setInt(0, 25); | ||
s.read(); | ||
} | ||
|
||
public static void main(java.lang.String[] argList) { | ||
junit.textui.TestRunner.run(X11Test.class); | ||
} | ||
} | ||
|
||
|