Posted by Kspansel@xxx.xxx on 1999-04-04
Hello..
I have a slight problem plotting a pixel in a super vga mode. Would
someone be so kind as to explain to me how to find the offset and bank for
the pixel? What I have is this:
long offset = (long)(y *modeInfo->HorizontalResolution + x);
short bank = (bank >> (16 - 4));
offset = offset - (bank << (16 - 4));
I use 16-4 because my card has a granularity of 4k and not 64k. For some
reason this won't work for me, and just can't figure out why. Any help at
all is greatly appreciated. Thanks.
Kory Spansel
Previous post | Next post | Timeline | Home