Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
41 user(s) are online (24 user(s) are browsing Forums)

Members: 0
Guests: 41

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: SDL1 open issues

Subject: Re: SDL1 open issues
by kas1e on 2019/9/1 17:42:50

@Capehill
Interseting, indeed "graywin" for sure works. But my test i post before, i.e. that one:

#include <SDL/SDL.h>
#include <stdbool.h>

SDL_Surface *screen;
SDL_Event event;

int main(int argcchar *argv[]) {
    
    
SDL_Init(SDL_INIT_VIDEO);
    
screen SDL_SetVideoMode(64048016SDL_SWSURFACE);

    
SDL_WarpMouse(640/2480/2);
    
    
SDL_WM_SetCaption("Simple Window""Simple Window");

    
bool done=false;

    while(!
done) {
        while(
SDL_PollEvent(&event)) {
                if (
event.type == SDL_QUIT) {
                    
done=true;
                }
        }
    }
    
    
SDL_Quit();

    return 
0;
}


Didn't (while works on win32). Strange ..
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project