Hello, I’m using SDL 1.3 (hg changeset 5498) and in this small test
the SDL_SetWindowSize doesn’t work for me. I’m doing something wrong?
I’m using ubuntu 10.04 with nvidia 270.29 drivers installed (not sure
if this helps).
#include <stdio.h>
#include <SDL/SDL.h>
int main(int argc, char *argv[])
{
if (SDL_Init(0) != 0) {
printf("ERROR init SDL ");
return 1;
}
if (SDL_VideoInit(NULL) != 0) {
printf("ERROR init VIDEO SDL ");
return 1;
}
SDL_Window *GLSDLWindow;
GLSDLWindow = SDL_CreateWindow("SDL RESIZE
TEST",10,10,100,200,SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN );
if (!GLSDLWindow)
{
printf(“ERROR init WINDOW SDL”);
return 1;
}
SDL_GLContext GLContext;
GLContext = SDL_GL_CreateContext(GLSDLWindow);
SDL_Delay(3000);
SDL_SetWindowSize(GLSDLWindow,600, 800);
SDL_Delay(3000);
return 0;
}
Thank you