Mail Archives: djgpp/1999/10/12/00:23:43
Damian Yerrick wrote:
> If you want to put a graphic on the screen, try the Allegro library.
----------------- mailto:K DOT Rdt AT TU-Berlin DOT DE start -------------------
Hello!
Well, I'm still trying to get a simplest(!) way of loading a *.bmp to
screen. That means I thankfully use the hints about allegro and the
examples for tp6 (from Uphoff), but want to have the following:
1.) Plain DOS(-16) switches to a (non-VESA-) gaph-mode, to
2.) load a *.bmp, on which I draw with ASM(-16) or the
like some menue, to get some input for running an
application.
Now the problem:
The logo.sys is a 320x400 pix with 256 colors. When I load it
with an allegro-test-prog (as pointed out in the thread) I
can find out a vid-mode 13h. vga.c:
/* standard mode 13h */
r.x.ax = 0x13;
__dpmi_int(0x10, &r);
When I load it in DOS-16-non-VESA-int10(0x13)-mode, then
I got the wrong colors: Is generally 0x13 a legal DOS-16-mode?
Klaus.
----------------- mailto:K DOT Rdt AT TU-Berlin DOT DE !end! -------------------
- Raw text -