Any outstanding bugs?

I’m gearing up to release SDL 1.2.5
Are there any outstanding bugs that need to be fixed, which have not
been fixed in the CVS code: http://www.libsdl.org/cvs.php

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

I’m gearing up to release SDL 1.2.5
Are there any outstanding bugs that need to be fixed, which have not
been fixed in the CVS code: http://www.libsdl.org/cvs.php

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Is the problem with SDL_WM_GrabInput under directx fixed? The changelogs
doesn’t mention it.
(I posted about it some time ago.)
//Anders

Is the problem with SDL_WM_GrabInput under directx fixed? The changelogs
doesn’t mention it.
(I posted about it some time ago.)

Thanks for the reminder, this is now fixed in CVS.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Opening 3dfxvgl.dll in win32 instead of opengl32.dll with
SDL_GL_LoadLibrary causes some serious problems still. I don’t have the
hardware or the software and won’t be able to get you a test case for at
least a couple of days.On Sun, Aug 18, 2002 at 03:02:20PM -0700, Sam Lantinga wrote:

I’m gearing up to release SDL 1.2.5
Are there any outstanding bugs that need to be fixed, which have not
been fixed in the CVS code: http://www.libsdl.org/cvs.php


Joseph Carter Do not write in this space

should a bug be marked critical if it only affects one arch?
jt: rc for that arch maybe, but those kind of arch
specific bugs are rare…
not when it’s caused by a bug in gcc
jt: get gcc removed from that arch. :slight_smile:

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020818/0fa5728c/attachment.pgp

I am not quite sure if this can be considered a bug, but if you are trying to
create a SDL frame with more than 32 bpp, it just seg-faults (in
SDL_SetVideoModeOk) without any error message.

A simple check for valid depths and SDL_SetError should be sufficient.

system:
debian GNU/Linux
SDL 1.2.4 (debian packages)
X11

p.s.: Thanks for the best cross-platform multimedia library I’ve ever seen.On Monday 19 August 2002 00:02, Sam Lantinga wrote:

I’m gearing up to release SDL 1.2.5
Are there any outstanding bugs that need to be fixed, which have not
been fixed in the CVS code: http://www.libsdl.org/cvs.php


Johannes Schmidt

< http://libufo.sourceforge.net > Your widget set for OpenGL

Hi Sam,
Any chance of including the Borland C++ Builder for Linux and Windows
project files in the next release?

Sincerely,

Dominique.

Sam Lantinga wrote:> I’m gearing up to release SDL 1.2.5

Are there any outstanding bugs that need to be fixed, which have not
been fixed in the CVS code: http://www.libsdl.org/cvs.php

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

has the SDL_AddTimer fix for mac os 9 and lower been added? haven’t seen it.

also, what about updated CW project files for CW7 + that work on mac and
windows…the current ones need some serious changes to work with windows.

I’m gearing up to release SDL 1.2.5
Are there any outstanding bugs that need to be fixed, which have not
been fixed in the CVS code: http://www.libsdl.org/cvs.php

Brian Hook mentioned some problems with fullscreen mode on OS X; has
anyone had a chance to play with that?

I’m nowhere near a Mac, so I can’t help on this one. :frowning:

–ryan.

I am not quite sure if this can be considered a bug, but if you are trying to
create a SDL frame with more than 32 bpp, it just seg-faults (in
SDL_SetVideoModeOk) without any error message.

This works with SDL CVS for me. Obviously, SDL_SetVideoMode() returns
NULL, but it doesn’t segfault.

#include <stdio.h>
#include “SDL.h”

int main(void)
{
SDL_Surface *screen;

if (SDL_Init(SDL_INIT_VIDEO) == -1)
{
    printf("SDL_Init() failed.\n");
    return(42);
}

screen = SDL_SetVideoMode(640, 480, 4545, 0);
printf("screen == (%p).\n", screen);
SDL_Delay(10000);
SDL_Quit();
return(0);

}

–ryan.

has the SDL_AddTimer fix for mac os 9 and lower been added? haven’t
seen it.

I can’t find this in the mailing list archives. Point me towards the fix,
please, and I’ll take a look.

–ryan.

Sam Lantinga wrote:

I’m gearing up to release SDL 1.2.5
Are there any outstanding bugs that need to be fixed, which have not
been fixed in the CVS code: http://www.libsdl.org/cvs.php

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

This is not a bug, but I believe something like this should be added to
SDL_mouse.h:
SDL_BUTTON_WHEELUP = 4; SDL_BUTTON_WHEELDOWN = 5; (for mouse wheel events).

RK.

This is not a bug, but I believe something like this should be added to
SDL_mouse.h:
SDL_BUTTON_WHEELUP = 4; SDL_BUTTON_WHEELDOWN = 5; (for mouse wheel events).

Done. :slight_smile:

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

I am not quite sure if this can be considered a bug, but if you are trying to
create a SDL frame with more than 32 bpp, it just seg-faults (in
SDL_SetVideoModeOk) without any error message.

This works with SDL CVS for me. Obviously, SDL_SetVideoMode() returns
NULL, but it doesn’t segfault.

And if I replace the SDL_SetVideoMode() call with SDL_VideoModeOK(), it
returns 0.

Do you have problems with SDL CVS code?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Hi Sam,
Any chance of including the Borland C++ Builder for Linux and Windows
project files in the next release?

Do the projects on the FAQ page work unmodified with the latest source?
Do you have access to C++ Builder for Linux?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

also, what about updated CW project files for CW7 + that work on mac and
windows…the current ones need some serious changes to work with windows.

Can you update the current projects in CVS to work with CodeWarrior for Windows?
They need to work flawlessly with the MacOS version of CodeWarrior as well.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Are you going to release new versions of the libraries you maintain too?
If so, the bug in SDLNet_UDP_Bind I told you about earlier is still not
fixed in CVS. For reminder, the 2nd SDLNET_MAX_UDPCHANNELS in that
function has to be changed to SDLNET_MAX_UDPADDRESSES…

PS: Plz don’t forget to check my other comments about SDL_net too (even
if they aren’t as important as this one)

-Ga?tan.On Mon, 2002-08-19 at 00:02, Sam Lantinga wrote:

I’m gearing up to release SDL 1.2.5
Are there any outstanding bugs that need to be fixed, which have not
been fixed in the CVS code: http://www.libsdl.org/cvs.php

Sam Lantinga wrote:

This is not a bug, but I believe something like this should be added to
SDL_mouse.h:
SDL_BUTTON_WHEELUP = 4; SDL_BUTTON_WHEELDOWN = 5; (for mouse wheel events).

Done. :slight_smile:

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

I went to `video/wincommon/SDL_sysevents.c’ to see if you really did the
full job (also replacing numbers with constants there), and I see you
did… :))))
But then again, why are the first three buttons as numbers (1,2,3) and
not constants? :smiley:

BTW, Dominique, please don’t forget to add those constants to SDL.pas… :slight_smile:

RK.

I am not quite sure if this can be considered a bug, but if you are
trying to

create a SDL frame with more than 32 bpp, it just seg-faults (in
SDL_SetVideoModeOk) without any error message.

This works with SDL CVS for me. Obviously, SDL_SetVideoMode() returns
NULL, but it doesn’t segfault.

And if I replace the SDL_SetVideoMode() call with SDL_VideoModeOK(), it
returns 0.

Do you have problems with SDL CVS code?

Took me some hours to find the actual bug:
I’ve downloaded the current CVS code and used Ryan’s test case.
Strangely enough, SDL_SetVideoMode() really returns NULL.

Then I have changed bpp from 4545 to 33 (resp. 454545 and other values),
result please see [1].

The error seems to be in SDL_GetVideoMode().
SDL_VideoModeOk() returns 0, but within SDL_GetVideMode() [at line 436],
the variable table it intialized with ((*BitsPerPixel+7)/8)-1.

table is used as first index for the 2D array SDL_closest_depths and should be
between 0 and 3.

For BitsPerPixel == 33, table would be 4 and out of range of
SDL_closest_depths.
As for the test case 4545: SDL_closest_depths + 4545 seems to be zero’d
(at least on my system).

To cut a long story short, in line 436 the variable table can have invalid
values.

[1]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 29887)]
SDL_GetVideoMode (w=0xbffff914, h=0xbffff918, BitsPerPixel=0xbffff91c,
flags=0)
at SDL_video.c:446
446 for ( i=0; sizes[i]; ++i ) {
(gdb) bt
#0 SDL_GetVideoMode (w=0xbffff914, h=0xbffff918, BitsPerPixel=0xbffff91c,
flags=0) at SDL_video.c:446
#1 0x40041b3a in SDL_SetVideoMode (width=640, height=480, bpp=33, flags=0)
at SDL_video.c:577
#2 0x08048674 in main ()
#3 0x400c20bf in __libc_start_main () from /lib/libc.so.6
(gdb)On Monday 19 August 2002 20:14, Sam Lantinga wrote:


Johannes Schmidt

< http://libufo.sourceforge.net > Your widget set for OpenGL

Under windows, if you have a mouse click trigger a change from fullscreen to
windowed mode and let go of the button before the mode change is complete
SDL_GetMouseState will report that the mouse button is still down until you
click the mouse button again. If you hold the mouse button until the change
is complete and then let go everything is fine.

#include <sdl.h>

int main( int argc, char **argv )
{
SDL_Event event;
int running, fullscreen;
unsigned long next;

if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_NOPARACHUTE) == -1)
{
printf(“Couldn’t initialize SDL: %s\n”, SDL_GetError());
return 0;
}

SDL_SetVideoMode( 640, 480, 16, 0 );

running = 1;
fullscreen = 0;
next = SDL_GetTicks() + 100;
while( running )
{
while(SDL_PollEvent(&event))
{
if( event.type == SDL_MOUSEBUTTONDOWN )
{
if( fullscreen )
{
printf( “Going windowed.\n” );
SDL_SetVideoMode( 640, 480, 16, 0 );
fullscreen = 0;
}
else
{
printf( “Going fulscreen.\n” );
SDL_SetVideoMode( 640, 480, 16, SDL_FULLSCREEN );
fullscreen = 1;
}
}
if( event.type == SDL_QUIT )
{
running = 0;
}
}
SDL_Delay( 1 );
if( SDL_GetTicks() > next )
{
printf( “Mouse state: %x\n”, SDL_GetMouseState(NULL, NULL) );
next = SDL_GetTicks() + 100;
}
}
SDL_Quit();

return 0;
}