delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/17/22:47:48

From: "G. S. Ehlers" <gehlers AT itol DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Mouse flicker under allegro
Date: Mon, 17 Sep 2001 21:48:36 -0700
Lines: 20
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
NNTP-Posting-Host: 209.62.165.233
Message-ID: <3ba6b094_2@corp.newsgroups.com>
X-Trace: corp.newsgroups.com 1000779924 209.62.165.233 (17 Sep 2001 21:25:24 -0500)
X-Comments: This message was posted through Newsfeeds.com
X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings.
X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!!
X-Report: Please report illegal or inappropriate use to <abuse AT newsfeeds DOT com>
X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS)
Organization: Newsfeeds.com http://www.newsfeeds.com 80,000+ UNCENSORED Newsgroups.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I'm trying to write a game that uses the mouse with allegro.

I understand that when you blit to the screen the pointer will flicker but
I've tried every combonation of vsync(), blit(), scare_mouse() and
unscare_mouse()
and even my own function to draw the mouse pointer
is there a way to get around the flicker?

right now it works like this...

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.




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019