From: <xav...@ho...> - 2001-01-30 01:53:59
|
Try: #include <allegro.h> int main() { BITMAP *target; allegro_init(); install_keyboard(); set_color_depth(32); set_gfx_mode(GFX_DIRECTX_WIN,640,480,0,0); target=create_bitmap(640,480); ectfill(target,0,0,10,10,makecol(0, 255, 255); blit(target,screen,0,0,0,0,640,480); while(!key[KEY_Q]); destroy_bitmap(target); allegro_exit(); return 0; } END_OF_MAIN() ----- Original Message ----- From: "Lukas Stadler" <lo...@gm...> To: "Allegro" <al...@ca...> Sent: Monday, January 29, 2001 11:47 PM Subject: [AL] GFX_DIRECTX_WIN - problems in Win2k > Hi everyone! > > I am having some problems using GFX_DIRECTX_WIN in Win2k; > The following Program crahses somewhere inside the blit - operation: > > ----- > #include <allegro.h> > #include <winalleg.h> > > int main() > { > BITMAP *target; > > allegro_init(); > install_keyboard(); > > set_color_depth(32); > set_gfx_mode(GFX_DIRECTX_WIN,640,480,0,0); > > target=create_bitmap_ex(32,640,480); > rectfill(target,0,0,10,10,0xffff); > blit(target,screen,0,0,0,0,640,480); > > while(!key[KEY_Q])Sleep(0); > > destroy_bitmap(target); > return 0; > } > END_OF_MAIN() > ----- > I am using a desktop-color-depth of 32 bit and Win2k SP1. Nor "target" > neither "screen" is NULL at the time of the blit operation. "test.exe" also > crashes with GFX_DIRECTX_WIN. > > If I use any other GFX_... , it works perfectly, even with GFX_DIRECTX_OVL, > which of course makes GFX_DIRECTX_WIN useless on my computer (PIII 650, > Notebook with an ATI Rage LT Pro 2x AGP, 128MB). But as GFX_DIRECTX_OVL is > hardware - dependant this could turn out to be a problem on other computers. > I first thought that the experimental ATI - Drivers are be the problem, but > changing to the standard-drivers did not correct the problem. > > This is not really vital to my program (a lanscape-rendering-engine), but I > do not see a reason for the "access violation". > > Thanks for reading this far, > Lukas > > >From <all...@ca...> Mon Jan 29 19:02:33 2001 Received: from mail.gmx.net [194.221.183.20] by canvaslink.com (SMTPD32-6.00) id A498135D010E; Mon, 29 Jan 2001 19:02:32 -0500 Received: (qmail 411 invoked by uid 0); 29 Jan 2001 23:59:11 -0000 Received: from gatekeeper.asn-linz.ac.at (HELO Billa) (193.170.68.253) by mail.gmx.net (mail07) with SMTP; 29 Jan 2001 23:59:11 -0000 From: "Lukas Stadler" <lo...@gm...> To: <al...@ca...> Date: Tue, 30 Jan 2001 01:01:43 +0100 Message-ID: <DCE...@gm...> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-Mimeole: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal In-Reply-To: <OE4...@ho...> Subject: AW: [AL] GFX_DIRECTX_WIN - problems in Win2k Precedence: bulk Sender: all...@ca... Reply-To: al...@ca... X-UIDL: 280789342 Status: O Content-Length: 260 Lines: 17 It does not help ... But on the conductors list I saw that they're working on some problems with GFX_DIRECTX_WIN. Perhaps I'll just wait ... thanks anyway, Lukas -----original message----- Try: #include <allegro.h> int main() { ... while(!key[KEY_Q]); ... |