Two questions

I have ported my 3d client to SDL 1.1 pretty fast and I like the
library, but there are two open questions left:

  • It looks like there is no fullscreen support in the windib drivers
    (WinNT can’t use DX5). Any plans to add it?

  • I am working with “dirty”-flags to minimize the parts that needs
    repainting in the window. Now I have problems if the user moves the
    window. Is there a possibility to get a “window moved/resized” event? (a
    portable way :wink:

Keep up the great work!

+Beosil

I have ported my 3d client to SDL 1.1 pretty fast and I like the
library, but there are two open questions left:

  • It looks like there is no fullscreen support in the windib drivers
    (WinNT can’t use DX5). Any plans to add it?

Yes, at some point.

  • I am working with “dirty”-flags to minimize the parts that needs
    repainting in the window. Now I have problems if the user moves the
    window. Is there a possibility to get a “window moved/resized” event? (a
    portable way :wink:

What problems do you have when the user moves the window?

The user is not able to resize the window at the moment.

Keep up the great work!

Thanks!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

What problems do you have when the user moves the window?

Whenever the window is moved, the content is moved too, but not the
right amount of pixels. The solution is to draw the whole client area
after moving the window (as opposed to the “dirty”-part approach I am
using right now), but I found no way to get an event that informs me
about a window movement.

It would be nice if there was a general event that is fired whenever the
client area of the window needs a full redraw (size, movement, z-order,
show/hide, etc.). Or is there a another solution?

+Beosil

ps. Sam, I think you do a gorgeous job answering all posts here =)

What problems do you have when the user moves the window?

Whenever the window is moved, the content is moved too, but not the
right amount of pixels. The solution is to draw the whole client area
after moving the window (as opposed to the “dirty”-part approach I am
using right now), but I found no way to get an event that informs me
about a window movement.

It would be nice if there was a general event that is fired whenever the
client area of the window needs a full redraw (size, movement, z-order,
show/hide, etc.). Or is there a another solution?

The SDL windows message loop is supposed to handle necessary redraw.
If it doesn’t, there is a bug.

Take a look at src/main/win32/SDL_main.c where it sets the style of the
client, and src/video/wincommon/SDL_sysevents.c where it handles windows
messages.

ps. Sam, I think you do a gorgeous job answering all posts here =)

Thanks!
I may not always have time to answer, but I try. :slight_smile:

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec