| www.delorie.com/djgpp/mail-archives/browse.cgi | search |
| Message-Id: | <199908252032.QAA25308@delorie.com> |
| From: | "Dan Gold" <TedMat AT CoastNet DOT com> |
| To: | <djgpp AT delorie DOT com> |
| Subject: | Re: Nearptr putpixel method? |
| Date: | Thu, 26 Aug 1999 21:15:32 -0700 |
| X-MSMail-Priority: | Normal |
| X-Priority: | 3 |
| X-Mailer: | Microsoft Internet Mail 4.70.1155 |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
It doesn't seem like much else could be wrong, what color is the pixel you are trying to place is it black or is the whole palette black by anychance? You may not be setting the screen mode right, I don't think you can use Allegro if you are. If this doesn't work I think it may be something else besides your code... Try: char * video_ptr = (char *)0xa0000; __djgpp_nearptr_enable() video_ptr += __djgpp_conventional_base(); __dpmi_regs regs; regs.x.ax = 0x13; __dpmi_int(0x10; ®s); video_ptr[0] = 1; video_ptr[[63999] = 1; __djgpp_nearptr_disable(); from ((--Dan Gold--))
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |