VoyForums

VoyUser Login optional ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1[2]34 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 23:28:32 09/05/03 Fri
Author: Patrick Shaughnessy
Subject: Re: I can't play the games
In reply to: 's message, "Re: I can't play the games" on 23:09:14 09/05/03 Fri

>>All the games commit an illegal operation after I open
>>them
>
>I see this too, on Gentoo linux. The problem is:
> disp=create_video_bitmap(W,H);
> buf=create_video_bitmap(W,H);
>
>buf returns NULL, but is not checked for this. Placing:
>if(!buf) { buf = disp; }
>fixes it, but the lack of double-buffering makes it
>flickery.

I was assuming any computer adequate to play on would have enough video ram to create 2 buffers. I made a lot of assumptions like that.

Interesting workaround forcing it to single-buffer.

>Also, on gcc it won't compile unless you include the
>correct headers (stdio.h and stdlib.h)

I guess that's one of the things minGW differs from vanilla gcc on.

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:



[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 2.94, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2008 Voyager Info-Systems. All Rights Reserved.