From: "Matthew Smith" Newsgroups: comp.os.msdos.djgpp Subject: Re: Mouse flicker under allegro Date: Fri, 21 Sep 2001 00:02:11 +0100 Lines: 28 Message-ID: <9odrvh$ev5$1@news5.svr.pol.co.uk> References: <3ba6b094_2 AT corp DOT newsgroups DOT com> NNTP-Posting-Host: webcachem01b.cache.pol.co.uk X-Trace: news5.svr.pol.co.uk 1001026353 15333 195.92.194.11 (20 Sep 2001 22:52:33 GMT) NNTP-Posting-Date: 20 Sep 2001 22:52:33 GMT X-Complaints-To: abuse AT theplanet DOT net X-Trace-PostClient-IP: 217.135.27.238 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > do{ > //important game junk > vsync(); > blit(vidbuf, screen, 0,0, 0,0, 640, 480); > fillrect(screen, mouse_x, mouse_y, mouse_x+8, mouse_y+8, 0x00FF00); > } while (!kbhit()); > > and I get a blinking yellow box for a pointer. > scare_mouse(); blit(vidbuf,screen,0,0,0,0,640,480); unscare_mouse(); vsync(); This should work with the standard pointer. Hint - 0x00FF00 looks like a 24 bit colour (green). If this comes out yellow then you are probably running a 16 bit screen mode. Perhaps you are also trying to use 0xFF00FF as the mask color? makecol(0x00,0xff,0x00) will produce green in the current screen mode makecol(0xff,0x00,0xff) or bitmap_mask_color(screen) will produce the correct mask color