SDL 1.1.3 prerelease

The SDL 1.1.3 prerelease is now available:
http://www.devolution.com/~slouken/SDL/cvs.html

I am planning to release SDL 1.1.3 early next week, so please compile this
and let me know if there are any bugs for you - or better, submit patches.

Changes since the last CVS snapshot:

  • Fixed some problems with iconification and focus in X11
  • You can now use SDL_MixAudio() without initializing audio
  • SDL_PeepEvents() doesn’t crash if called after SDL_Quit()
  • Fixed corruption and deadlock in threaded timers
  • Optimized bitmap --> 8bit colorkey blitting
  • Added Visual C++ inline assembly for stretch blit
  • SDL_SetColors() now works without initializing video.
  • Implemented resizable windows on Win32
  • Screen is properly redrawn when X server doesn’t back store.
  • testgl program prints out GL info strings (thanks Daniel)

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

The SDL 1.1.3 prerelease is now available:
http://www.devolution.com/~slouken/SDL/cvs.html

I am planning to release SDL 1.1.3 early next week, so please compile this
and let me know if there are any bugs for you - or better, submit patches.

The only patch I want to submit is a small hack in for the video modes that
don’t support OpenGL, returning an error message. (fbcon/svga). I’ll add that
to the prerelease this evening, now that my computer is finally working again.

I’ll be glad to see it out.

-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Nicholas

Sam Lantinga wrote:

  • Implemented resizable windows on Win32

Are we going to enable maximize the button? If a window is resizable, it
should also be maximizable. 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 would be a little different in
SDL_dx5video.c but the idea is the same.

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

We only get a single resize event when the mouse is released when resizing a
window with “show window contents while dragging” set in the window manager.
Is it possible to get multiple events so that the contents can be
dynamically resized? Would this cause “ugly black flashes” as the video mode
is continuously resized?

  • Randi

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

Are we going to enable maximize the button?

Sure, why not?

We only get a single resize event when the mouse is released when resizing a
window with “show window contents while dragging” set in the window manager.
Is it possible to get multiple events so that the contents can be
dynamically resized?

I don’t believe so.

Would this cause “ugly black flashes” as the video mode
is continuously resized?

If it were possible, yes, it would cause ugly black flashes.

(as far as I know)

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Sam, is there any chance you could add this patch? I have posted
it a number of times in the past but it never seems to make it
into the SDL CVS.

Mo DeJong
Red Hat Inc

Index: configure.in===================================================================
RCS file: /cvs/SDL/configure.in,v
retrieving revision 1.49
diff -u -r1.49 configure.in
configure.in 2000/03/14 19:59:26 1.49
+++ configure.in 2000/04/07 07:24:26
@@ -763,6 +763,17 @@
AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos)
AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos)

+# Set runtime shared library paths as needed
+SDL_RLD_FLAGS=""
+
+if test $ARCH = linux; then

  • SDL_RLD_FLAGS="-Wl,-rpath=${exec_prefix}/lib"
    +fi

+if test $ARCH = solaris; then

  • SDL_RLD_FLAGS="-R=${exec_prefix}/lib"
    +fi

dnl Output the video drivers we use
if test x$enable_video = xtrue; then
if test “$VIDEO_SUBDIRS” = “”; then
@@ -778,6 +789,7 @@
dnl Expand the cflags and libraries needed by apps using SDL
AC_SUBST(SDL_CFLAGS)
AC_SUBST(SDL_LIBS)
+AC_SUBST(SDL_RLD_FLAGS)

dnl Expand the include directories for building SDL
CFLAGS="$CFLAGS -I$(top_srcdir)/include"
Index: sdl-config.in

RCS file: /cvs/SDL/sdl-config.in,v
retrieving revision 1.5
diff -u -r1.5 sdl-config.in
sdl-config.in 2000/02/28 19:04:41 1.5
+++ sdl-config.in 2000/04/07 07:24:26
@@ -45,19 +45,11 @@
echo $includes -I at includedir@/SDL @SDL_CFLAGS@
;;
–libs)

  •  if [ "`uname`" = "SunOS" ]; then
    
  •    libdirs="-L at libdir@ -R at libdir@"
    
  •  else
    
  •    libdirs="-L at libdir@"
    
  •  fi
    
  •  libdirs="-L at libdir@ @SDL_RLD_FLAGS@"
     echo $libdirs @SDL_LIBS@
     ;;
    
    –static-libs)
  •  if [ "`uname`" = "SunOS" ]; then
    
  •    libdirs="-L at libdir@ -R at libdir@"
    
  •  else
    
  •    libdirs="-L at libdir@"
    
  •  fi
    
  •  libdirs="-L at libdir@ @SDL_RLD_FLAGS@"
     echo $libdirs @SDL_LIBS@ @SYSTEM_LIBS@
     ;;
    
    *)

Oh yeah, another thing.

XFree86 4.0, binary build, puts the GL includes in /usr/X11R6/include/GL.
This causes SDL to barf and choke since it expects 'em in
/usr/local/include/GL. Can we add some sort of multiple testing?

Nicholas> ----- Original Message -----

From: slouken@devolution.com (Sam Lantinga)
To: sdl at lokigames.com
Date: Friday, May 19, 2000 10:14 AM
Subject: [SDL] SDL 1.1.3 prerelease

The SDL 1.1.3 prerelease is now available:
http://www.devolution.com/~slouken/SDL/cvs.html

I am planning to release SDL 1.1.3 early next week, so please compile this
and let me know if there are any bugs for you - or better, submit patches.

Changes since the last CVS snapshot:

  • Fixed some problems with iconification and focus in X11
  • You can now use SDL_MixAudio() without initializing audio
  • SDL_PeepEvents() doesn’t crash if called after SDL_Quit()
  • Fixed corruption and deadlock in threaded timers
  • Optimized bitmap --> 8bit colorkey blitting
  • Added Visual C++ inline assembly for stretch blit
  • SDL_SetColors() now works without initializing video.
  • Implemented resizable windows on Win32
  • Screen is properly redrawn when X server doesn’t back store.
  • testgl program prints out GL info strings (thanks Daniel)

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

+if test $ARCH = solaris; then

  • SDL_RLD_FLAGS="-R=${exec_prefix}/lib"
    +fi

No ‘=’ between -R and the path in Solaris linking.

Sam Lantinga wrote:

The SDL 1.1.3 prerelease is now available:
http://www.devolution.com/~slouken/SDL/cvs.html

Does it still has the Thread bug, when waiting on a conditional
variable, that the recusive counter is not decreased?

Martin

Mattias Engdeg?rd wrote:

+if test $ARCH = solaris; then

  • SDL_RLD_FLAGS="-R=${exec_prefix}/lib"
    +fi

No ‘=’ between -R and the path in Solaris linking.

Boy, is my face red. Here is an updated version of
the patch for the 1_1 branch of SDL in the CVS. I
tested this under Linux with the most recent versions
of SDL and SMPEG from the CVS so I am confident that
it now works.===================================================================
RCS file: /cvs/SDL/configure.in,v
retrieving revision 1.25.2.55
diff -u -r1.25.2.55 configure.in
configure.in 2000/05/19 21:59:30 1.25.2.55
+++ configure.in 2000/05/20 22:47:22
@@ -1052,6 +1052,16 @@
AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos)
AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos)

+# Set runtime shared library paths as needed
+
+if test $ARCH = linux; then

  • SDL_RLD_FLAGS="-Wl,-rpath,${exec_prefix}/lib"
    +fi

+if test $ARCH = solaris; then

  • SDL_RLD_FLAGS="-R${exec_prefix}/lib"
    +fi

dnl Output the video drivers we use
if test x$enable_video = xtrue; then
if test “$VIDEO_SUBDIRS” = “”; then
@@ -1067,10 +1077,10 @@
dnl Expand the cflags and libraries needed by apps using SDL
AC_SUBST(SDL_CFLAGS)
AC_SUBST(SDL_LIBS)
+AC_SUBST(SDL_RLD_FLAGS)

dnl Expand the libraries needed for static linking
AC_SUBST(SYSTEM_LIBS)

dnl Expand the include directories for building SDL
CFLAGS="$CFLAGS -I$(top_srcdir)/include"
CFLAGS="$CFLAGS -I$(top_srcdir)/include/SDL"
Index: sdl-config.in

RCS file: /cvs/SDL/sdl-config.in,v
retrieving revision 1.3.2.2
diff -u -r1.3.2.2 sdl-config.in
sdl-config.in 2000/02/28 19:04:48 1.3.2.2
+++ sdl-config.in 2000/05/20 22:47:22
@@ -45,19 +45,11 @@
echo $includes -I at includedir@/SDL @SDL_CFLAGS@
;;
–libs)

  •  if [ "`uname`" = "SunOS" ]; then
    
  •    libdirs="-L at libdir@ -R at libdir@"
    
  •  else
    
  •    libdirs="-L at libdir@"
    
  •  fi
    
  •  libdirs="-L at libdir@ @SDL_RLD_FLAGS@"
     echo $libdirs @SDL_LIBS@
     ;;
    
    –static-libs)
  •  if [ "`uname`" = "SunOS" ]; then
    
  •    libdirs="-L at libdir@ -R at libdir@"
    
  •  else
    
  •    libdirs="-L at libdir@"
    
  •  fi
    
  •  libdirs="-L at libdir@ @SDL_RLD_FLAGS@"
     echo $libdirs @SDL_LIBS@ @SYSTEM_LIBS@
     ;;
    
    *)

Mo DeJong
Red Hat Inc

Sam Lantinga wrote:

The SDL 1.1.3 prerelease is now available:
http://www.devolution.com/~slouken/SDL/cvs.html

Does it still has the Thread bug, when waiting on a conditional
variable, that the recusive counter is not decreased?

Probably. Can you send the test code to my account so I can check?

That’s something I definitely want to fix before releasing 1.1.3

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

Boy, is my face red. Here is an updated version of
the patch for the 1_1 branch of SDL in the CVS. I
tested this under Linux with the most recent versions
of SDL and SMPEG from the CVS so I am confident that
it now works.

Thanks! I’ve applied it to CVS. :slight_smile:

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Does it still has the Thread bug, when waiting on a conditional
variable, that the recusive counter is not decreased?

I fixed the bug internally and will commit it to CVS very soon.

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