format = (int)nativeData[3];\r
}\r
\r
- public Gdx2DPixmap (int width, int height, int format) throws IllegalArgumentException {\r
+ /** @throws GdxRuntimeException if allocation failed. */\r
+ public Gdx2DPixmap (int width, int height, int format) throws GdxRuntimeException {\r
pixelPtr = newPixmap(nativeData, width, height, format);\r
- if (pixelPtr == null) throw new IllegalArgumentException("couldn't load pixmap");\r
+ if (pixelPtr == null) throw new GdxRuntimeException("couldn't load pixmap");\r
\r
this.basePtr = nativeData[0];\r
this.width = (int)nativeData[1];\r