Subject: [pleh] djgfx linear VBE2 example code problems
From: <latorre_at_ix.netcom.com>
Date: 1996/04/21
Message-ID: <317A6DD4.63C1_at_ix.netcom.com>#1/1
}
Date: 1996/04/21
Message-ID: <317A6DD4.63C1_at_ix.netcom.com>#1/1
I'm totaly new to protected mode and was trying to work through the example code from the DJGFX doc but keep getting GPF's. I think the problem is with the code for copy_buffer2:
void copy_buffer2(void)
{
movedata( _my_ds(), doublebuffer, our_global_selector, videoptr, width*height );
}
doublebuffer == malloc(width*height)
videoptr == (unsigned char *)0x0 // I tried the linear_address too
I set up our_global_selector thusly:
short our_global_selector = __dpmi_allocate_ldt_descriptors(1); __dpmi_set_segment_base_address( our_global_selector,
linear_address);
What needs to change ? What am I doing wrong ?
Thanks,
mlarch_at_fred.net Received on Sun Apr 21 1996 - 00:00:00 CEST