SDL_VIDEORESIZE not being received 100% of the time when resizing window from corner

Hello,
When I try to receive SDL_VIDEORESIZE event during corner resizing
(resizing from the corner of a window) it doesn’t work in this
program: https://github.com/Jordanlw/OsmosClone (check main.c for
problem), but when I made a simple test program it does work, here’s
the test program:

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

int main()
{
SDL_Init(SDL_INIT_EVERYTHING);
SDL_Surface *screen = SDL_SetVideoMode(100,100,32,SDL_SWSURFACE |
SDL_RESIZABLE);
int i;
for(i = 0;;i++)
{
SDL_Event event;
SDL_PollEvent(&event);
if(event.type == SDL_VIDEORESIZE)
{
printf("%d RESIZE\n",i);
}
if(event.type == SDL_QUIT)
{
return 0;
}
}
return 0;
}

I’m running sdl 1.2.15-1 in Arch Linux 64bit.
Thanks.

I had the same problem only when resizing the window from the
corner.Haven’t found a solution yetOn Tue, Feb 21, 2012 at 10:05 PM, Jordan Windsor wrote:

Hello,
When I try to receive SDL_VIDEORESIZE event during corner resizing
(resizing from the corner of a window) it doesn’t work in this
program: https://github.com/Jordanlw/OsmosClone (check main.c for
problem), but when I made a simple test program it does work, here’s
the test program:

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

int main()
{
? ?SDL_Init(SDL_INIT_EVERYTHING);
? ?SDL_Surface *screen = SDL_SetVideoMode(100,100,32,SDL_SWSURFACE |
? ? ? ?SDL_RESIZABLE);
? ?int i;
? ?for(i = 0;;i++)
? ?{
? ? ? ?SDL_Event event;
? ? ? ?SDL_PollEvent(&event);
? ? ? ?if(event.type == SDL_VIDEORESIZE)
? ? ? ?{
? ? ? ? ? ?printf("%d RESIZE\n",i);
? ? ? ?}
? ? ? ?if(event.type == SDL_QUIT)
? ? ? ?{
? ? ? ? ? ?return 0;
? ? ? ?}
? ?}
? ?return 0;
}

I’m running sdl 1.2.15-1 in Arch Linux 64bit.
Thanks.


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

I had the same problem only when resizing the window from the
corner.Haven’t found a solution yet

Hello,
When I try to receive SDL_VIDEORESIZE event during corner resizing
(resizing from the corner of a window) it doesn’t work in this
program: https://github.com/Jordanlw/OsmosClone (check main.c for
problem), but when I made a simple test program it does work, here’s
the test program:

Just thought I should point out that this is a regression and there’s an
open bug report here: http://bugzilla.libsdl.org/show_bug.cgi?id=1430

(Let’s hope this reaches the list, I’m not subscribed!)On Tue, 2012-02-21 at 22:19 +0200, dimitris.zeniosa wrote:

On Tue, Feb 21, 2012 at 10:05 PM, Jordan Windsor wrote:


Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120303/b69476d5/attachment.pgp