Problem with SDL_SetWindowSize?

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 :slight_smile:

I tried with a fresh ubuntu 10.04, and doesn’t work neither :S

Can anyone try it please?

Thanks!
-------------- next part --------------
A non-text attachment was scrubbed…
Name: main.c
Type: text/x-csrc
Size: 622 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20110321/ace6d112/attachment.c

We’ve tested the resize function on 10.04, 10.10, and 11.04 beta versions of Ubuntu and it doesn’t appear to work on any of those.

Thanks for the feedback Mako. now we have to find the bug :confused:

2011/3/21 Mako_energy <mako_energy02 at yahoo.com>:> We’ve tested the resize function on 10.04, 10.10, and 11.04 beta versions of

Ubuntu and it doesn’t appear to work on any of those.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org