diff options
author | Sven Gothel <[email protected]> | 2015-02-16 06:39:52 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-02-16 06:39:52 +0100 |
commit | 42d88f99cfa62304943a7b37700653e627b13e61 (patch) | |
tree | c1556ac4b8ce5a6dd3325a15766b0375d722d52e /src/nativewindow/classes | |
parent | 70faf070f50ea66fd4cc8f5f586614810f378787 (diff) |
Fix typo: PixelFormat.Composition.[componenCount() -> componentCount()]
.. thx to Julien Gouesse's review.
Diffstat (limited to 'src/nativewindow/classes')
-rw-r--r-- | src/nativewindow/classes/com/jogamp/nativewindow/util/PixelFormat.java | 4 | ||||
-rw-r--r-- | src/nativewindow/classes/com/jogamp/nativewindow/util/PixelFormatUtil.java | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/util/PixelFormat.java b/src/nativewindow/classes/com/jogamp/nativewindow/util/PixelFormat.java index 8b1e91564..748e14f0d 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/util/PixelFormat.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/util/PixelFormat.java @@ -425,7 +425,7 @@ public enum PixelFormat { boolean isInterleaved(); /** Number of components per pixel, e.g. 3 for {@link PixelFormat#RGBx8888 RGBx8888}. */ - int componenCount(); + int componentCount(); /** Number of bits per pixel, e.g. 24 bits for {@link PixelFormat#RGBx8888 RGBx8888}. */ int bitsPerPixel(); /** @@ -602,7 +602,7 @@ public enum PixelFormat { @Override public final boolean isInterleaved() { return true; } @Override - public final int componenCount() { return compMask.length; } + public final int componentCount() { return compMask.length; } @Override public final int bitsPerPixel() { return bitsPerPixel; } @Override diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/util/PixelFormatUtil.java b/src/nativewindow/classes/com/jogamp/nativewindow/util/PixelFormatUtil.java index 180f02d72..42f6ccb8a 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/util/PixelFormatUtil.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/util/PixelFormatUtil.java @@ -46,12 +46,12 @@ public class PixelFormatUtil { public static class ComponentMap { /** * Contains the source index for each destination index, - * length is {@link Composition#componenCount()} of destination. + * length is {@link Composition#componentCount()} of destination. */ final int[] dst2src; /** * Contains the destination index for each source index, - * length is {@link Composition#componenCount()} of source. + * length is {@link Composition#componentCount()} of source. */ final int[] src2dst; @@ -62,8 +62,8 @@ public class PixelFormatUtil { final boolean hasSrcRGB; public ComponentMap(final PixelFormat.Composition src, final PixelFormat.Composition dst) { - final int sCompCount = src.componenCount(); - final int dCompCount = dst.componenCount(); + final int sCompCount = src.componentCount(); + final int dCompCount = dst.componentCount(); final PixelFormat.CType[] sCompOrder = src.componentOrder(); final PixelFormat.CType[] dCompOrder = dst.componentOrder(); @@ -513,8 +513,8 @@ public class PixelFormatUtil { final Bitstream<ByteBuffer> dstBitStream, final PixelFormat.Composition srcComp, final Bitstream<ByteBuffer> srcBitStream) throws IllegalStateException, IOException { - final int sCompCount = srcComp.componenCount(); - final int dCompCount = dstComp.componenCount(); + final int sCompCount = srcComp.componentCount(); + final int dCompCount = dstComp.componentCount(); final int[] sc = new int[sCompCount]; final int[] dcDef = new int[dCompCount]; final int[] srcCompBitCount = srcComp.componentBitCount(); |