SDLVideo.videoModeOK flags should be long, not int
Status: Beta
Brought to you by:
ivan_ganza
public static int videoModeOK(int width,
int height,
int bpp,
-> int <-flags)
throws SDLException
public static SDLSurface setVideoMode(int width,
int height,
int bpp,
long flags)
throws SDLException
public static final long SDL_FULLSCREEN
Flags are long, videoModeOK should take a long.
Workaround: typecast the constants to int
Logged In: YES
user_id=1380072
Fixed, patch below:
Index: SDLVideo.java
RCS file:
/cvsroot/sdljava/sdljava/src/sdljava/video/SDLVideo.java,v
retrieving revision 1.24
diff -u -r1.24 SDLVideo.java
--- SDLVideo.java 16 Oct 2005 15:19:20 -0000 1.24
+++ SDLVideo.java 8 Dec 2005 21:05:01 -0000
@@ -249,7 +249,7 @@
* but will emulate the requested bits-per-pixel with a
shadow surface.
* @exception SDLException If an error occurs
*/
- public static int videoModeOK(int width, int height,
int bpp, int flags) throws SDLException {
+ public static int videoModeOK(int width, int height,
int bpp, long flags) throws SDLException {
return SWIG_SDLVideo.SDL_VideoModeOK(width, height, bpp,
flags);
}
videoModeOK patch