| delorie.com/archives/browse.cgi | search |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Allegro getpixel problem |
| From: | jayjohnson AT rocketmail DOT com (Jay Johnson) |
| X-Newsreader: | WinVN 0.99.9 (Released Version) (x86 32bit) |
| References: | <GhDM2.160$x65 DOT 30417 AT newse3 DOT tampabay DOT rr DOT com> |
| MIME-Version: | 1.0 |
| Lines: | 27 |
| Message-ID: | <ReUM2.17$Dt.5098@newse3.tampabay.rr.com> |
| Date: | Fri, 02 Apr 1999 00:32:49 GMT |
| NNTP-Posting-Host: | 24.93.93.236 |
| X-Complaints-To: | newsabuse AT tampabay DOT rr DOT com |
| X-Trace: | newse3.tampabay.rr.com 923013169 24.93.93.236 (Thu, 01 Apr 1999 19:32:49 EST) |
| NNTP-Posting-Date: | Thu, 01 Apr 1999 19:32:49 EST |
| Organization: | RoadRunner - Carolina |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
OOPS, the textbuf is 50 not 5!
Parts of the code:
BITMAP buffer;
int temp;
char textbuf[50];
...
putpixel(buffer, 0, 0, 6);
temp=getpixel(buffer, 0, 0);
sprintf(textbuf, "getpixel:%d", temp);
textout(buffer, font, textbuf, 5, 70, 6);
...
It seems like I should be getting a 6 out of the getpixel,
but I only get 0.
Please drop me an email if you can help,
jayjohnson AT rocketmail DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |