Menu

#1 SDLVideo.videoModeOK flags should be long, not int

open-fixed
nobody
None
5
2005-12-08
2005-12-08
Extreme
No

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

Discussion

  • Extreme

    Extreme - 2005-12-08

    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);
    }

     
  • Extreme

    Extreme - 2005-12-08
    • status: open --> pending-fixed
     
  • Extreme

    Extreme - 2005-12-08

    videoModeOK patch

     
  • Extreme

    Extreme - 2005-12-08
    • status: pending-fixed --> open-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.