CVS update (stuff)

A new CVS snapshot is available from the usual place:
http://www.devolution.com/~slouken/SDL/cvs.html

Changes:

  • Implemented inline ASM stretch blit on Win32
  • Implemented resizable windows on Win32 DirectX and GDI
  • Added IMPS/2 protocol support for framebuffer console

Enjoy!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Sam Lantinga wrote:

  • Implemented resizable windows on Win32 DirectX and GDI

Would you stop that! You’re too quick for your own good :slight_smile:

The following is a small patch to SDL_dibvideo.c (line 417) to enable
maximizing. The “IsZoomed” check prevents the maximized state from being
lost. The code will be a little different in SDL_dx5video.c but the idea is
the same. Do these changes need to respect the SDL_windowid hack?

if ( flags & SDL_RESIZABLE ) {
style |= WS_THICKFRAME|WS_MAXIMIZEBOX;
video->flags |= SDL_RESIZABLE;
if (IsZoomed(SDL_Window)) style |= WS_MAXIMIZE;
}

I noticed that it is possible to get a resize event with zero in the width
or height if you iconify or manually resize to zero. Do we need to expose
the min/max window size hints? I think an iconify will generate a zero-sized
resize event even if the minimum window size set to non-zero. This may not
be an issue as long as the apps are aware of it. Otherwise, works great!

  • Randi

Regimental Command
Generic Armored Combat System
http://www-users.cs.umn.edu/~relander/regcom/index.html

Would you stop that! You’re too quick for your own good :slight_smile:

Heheh.

The following is a small patch to SDL_dibvideo.c (line 417) to enable
maximizing. The “IsZoomed” check prevents the maximized state from being
lost. The code will be a little different in SDL_dx5video.c but the idea is
the same. Do these changes need to respect the SDL_windowid hack?

Hmm, probably…

I noticed that it is possible to get a resize event with zero in the width
or height if you iconify or manually resize to zero. Do we need to expose
the min/max window size hints?

I think limiting min window size to 32x32 is fine. Remember the application
has to explicitly set a video mode, and can force supported settings at that
point.

I think an iconify will generate a zero-sized
resize event even if the minimum window size set to non-zero. This may not
be an issue as long as the apps are aware of it. Otherwise, works great!

Can you whip up a quick patch to prevent zero sized resize events?

Thanks!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software