X11 @ 1bpp segfaults

hi

when I try to SDL_SetVideoMode(xxx, yyy, 1, XXX); I get a segfault.
I understand 1bpp was not the purpose of SDL, but it should at least be
protected from this.

the problem appears to be that X11_ListModes may return -1 on failure and
SDL_GetVideoMode expects 0 as failure indicator for SDL_ListModes

cheers.

hi

when I try to SDL_SetVideoMode(xxx, yyy, 1, XXX); I get a segfault.
I understand 1bpp was not the purpose of SDL, but it should at least be
protected from this.

Are you using SDL 1.2.5?

I get the following:
Couldn’t set 640x480x1 video mode: Invalid bits per pixel (range is {8…32})

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

the problem appears to be that X11_ListModes may return -1 on failure and
SDL_GetVideoMode expects 0 as failure indicator for SDL_ListModes

I thought we fixed this…what version are you using?

–ryan.

Hi,

I haven’t been following the list lately so forgive me if this has been
mentioned before but I noticed on the Linux Game Tome site that the book
Linux Game Programming has be released for free (as in beer) in pdf format.

The book is primarily about game programming using SDL – 400+ pages.
I found the scripting and networking chapters rather interesting!

cheers,
RJP

sorry apparentely I was using older version.On Thu, 24 Oct 2002, Ryan C. Gordon wrote:

the problem appears to be that X11_ListModes may return -1 on failure and
SDL_GetVideoMode expects 0 as failure indicator for SDL_ListModes

I thought we fixed this…what version are you using?

–ryan.


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

Roy Pluschke wrote:

Hi,

I haven’t been following the list lately so forgive me if this has been
mentioned before but I noticed on the Linux Game Tome site that the book
Linux Game Programming has be released for free (as in beer) in pdf format.

The book is primarily about game programming using SDL – 400+ pages.
I found the scripting and networking chapters rather interesting!

cheers,
RJP


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

hi,

can u tell us where the pdf version is available for download?

regards,
nishal.

Hi,

try this link:

http://www.overcode.net/~overcode/writing/plg/

You will find some mirror sides where you can download the pdf.

cu,

Luke

-----Urspr?ngliche Nachricht-----Von: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] Im Auftrag von
Nishal Thomas
Gesendet: Donnerstag, 24. Oktober 2002 11:57
An: sdl at libsdl.org
Betreff: Re: [SDL] linux game programming book

Roy Pluschke wrote:

Hi,

I haven’t been following the list lately so forgive me if this has been
mentioned before but I noticed on the Linux Game Tome site that the
book
Linux Game Programming has be released for free (as in beer) in pdf
format.

The book is primarily about game programming using SDL – 400+ pages.
I found the scripting and networking chapters rather interesting!

cheers,
RJP


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

hi,

can u tell us where the pdf version is available for download?

regards,
nishal.


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

The link is
http://www.overcode.net/~overcode/writing/plg/

I saw it at Linux Games.–
Paulo Pinto

----- Original Message -----
From: nishal@iitk.ac.in (Nishal Thomas)
To:
Sent: Thursday, October 24, 2002 10:57 AM
Subject: Re: [SDL] linux game programming book

Roy Pluschke wrote:

Hi,

I haven’t been following the list lately so forgive me if this has been
mentioned before but I noticed on the Linux Game Tome site that the book
Linux Game Programming has be released for free (as in beer) in pdf
format.

The book is primarily about game programming using SDL – 400+ pages.
I found the scripting and networking chapters rather interesting!

cheers,
RJP

You can download the PDF at

http://tf.sunsite.dk/~wizard/plg/source/release/

CU

“Paulo Pinto” schrieb im Newsbeitrag news:mailman.1035459848.14472.sdl at libsdl.org…> The link is

http://www.overcode.net/~overcode/writing/plg/

I saw it at Linux Games.


Paulo Pinto

----- Original Message -----
From: “Nishal Thomas”
To:
Sent: Thursday, October 24, 2002 10:57 AM
Subject: Re: [SDL] linux game programming book

Roy Pluschke wrote:

Hi,

I haven’t been following the list lately so forgive me if this has been
mentioned before but I noticed on the Linux Game Tome site that the book
Linux Game Programming has be released for free (as in beer) in pdf
format.

The book is primarily about game programming using SDL – 400+ pages.
I found the scripting and networking chapters rather interesting!

cheers,
RJP

Roy Pluschke wrote:

I haven’t been following the list lately so forgive me if this has been
mentioned before but I noticed on the Linux Game Tome site that the book
Linux Game Programming has be released for free (as in beer) in pdf format.

Yep! It’s available for free download at
http://www.overcode.net/~overcode/writing/plg . However, the title is
"Programming Linux Games". “Linux Game Programming” is a different book,
which as far as I know is not available electronically.

The site has had almost 9000 unique hits this week. :slight_smile:

-John–
John R. Hall, KG4RUO
http://www.overcode.net

With all due respect, the CD included with Linux Game Programming is
absolutely worthless. Prima really botched it. The book unfortunately
depends on the CD being anything other than useless, so unless the entire
CD contents are now available online, I suggest you look pass on the Prima
book and buy the No Starch book instead.

I own both myself. The Prima book is organised a little differently and
is occasionally useful, but the No Starch book written by John Hall is the
book I use and recommend for people learning how to do this stuff.On Thu, Oct 24, 2002 at 11:54:27AM -0400, John R. Hall wrote:

I haven’t been following the list lately so forgive me if this has been
mentioned before but I noticed on the Linux Game Tome site that the book
Linux Game Programming has be released for free (as in beer) in pdf format.

Yep! It’s available for free download at
http://www.overcode.net/~overcode/writing/plg . However, the title is
"Programming Linux Games". “Linux Game Programming” is a different book,
which as far as I know is not available electronically.

The site has had almost 9000 unique hits this week. :slight_smile:


Joseph Carter Sooner or later, BOOM!

Mercury: gpm isn’t a very good web browser. fix it.

-------------- 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/20021024/12d2b54e/attachment.pgp

Hi,

The Linux Game Tome (happypenguin.org) has a link to a site w/ mirrors.

Cam

Nishal Thomas wrote:> Roy Pluschke wrote:

Hi,

I haven’t been following the list lately so forgive me if this has been
mentioned before but I noticed on the Linux Game Tome site that the book
Linux Game Programming has be released for free (as in beer) in pdf
format.

The book is primarily about game programming using SDL – 400+ pages.
I found the scripting and networking chapters rather interesting!

cheers,
RJP


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

hi,

can u tell us where the pdf version is available for download?

regards,
nishal.


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