diff options
author | Sven Gothel <[email protected]> | 2014-01-03 04:45:03 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-01-03 04:45:03 +0100 |
commit | e3cf96249f4c722f8b2a7d0e052e19165cef171e (patch) | |
tree | b04cdc89682e934c9578526ce4aa74a5018fadfc /src | |
parent | 3e85aa120149d882f52faf2c7fb053156313c896 (diff) |
Bug 935: NEWT PointerIcon PNGIcon: Remove return value 'elem_bytesize[]' which is always 4 (RGBA/BGRA
Diffstat (limited to 'src')
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java index 3239aab5b..764d4fdab 100644 --- a/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java +++ b/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java @@ -68,14 +68,14 @@ public class WindowDriver extends WindowImpl { long[] _defaultIconHandle = { 0, 0 }; if( PNGIcon.isAvailable() ) { try { - final int[] width = { 0 }, height = { 0 }, data_size = { 0 }, elem_bytesize = { 0 }; + final int[] width = { 0 }, height = { 0 }, data_size = { 0 }; final IOUtil.ClassResources iconRes = NewtFactory.getWindowIcons(); { - final ByteBuffer icon_data_small = PNGIcon.singleToRGBAImage(iconRes, 0, true /* toBGRA */, width, height, data_size, elem_bytesize); + final ByteBuffer icon_data_small = PNGIcon.singleToRGBAImage(iconRes, 0, true /* toBGRA */, width, height, data_size); _defaultIconHandle[0] = DisplayDriver.createBGRA8888Icon0(icon_data_small, width[0], height[0], false, 0, 0); } { - final ByteBuffer icon_data_big = PNGIcon.singleToRGBAImage(iconRes, iconRes.resourceCount()-1, true /* toBGRA */, width, height, data_size, elem_bytesize); + final ByteBuffer icon_data_big = PNGIcon.singleToRGBAImage(iconRes, iconRes.resourceCount()-1, true /* toBGRA */, width, height, data_size); _defaultIconHandle[1] = DisplayDriver.createBGRA8888Icon0(icon_data_big, width[0], height[0], false, 0, 0); } } catch (Exception e) { |