Mail Archives: djgpp/1999/02/10/20:12:39
Hey... whoever sent the code snippets for a quick&dirty video mode get/set,
thanks again, and could you please identify yourself? I seem to have lost
the original email and the sender's name and I am about to stick a comment
in some source code crediting them for these little functions.
At 05:14 PM 2/2/99 -0800, somebody wrote:
>#include <dpmi.h>
>
>void set_mode(int m)
>{
> __dpmi_regs r;
> r.h.ah = 0;
> r.h.al = m;
> __dpmi_int(0x10, &r);
>}
>
>int get_mode(void)
>{
> __dpmi_regs r;
> r.h.ah = 0x0f;
> __dpmi_int(0x10, &r);
> return r.h.al;
>}
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." -------------------------------------------------
-- B. Mandelbrot |http://surf.to/pgd.net
_____________________ ____|________ Paul Derbyshire pderbysh AT usa DOT net
Programmer & Humanist|ICQ: 10423848|
- Raw text -