Scrolling in the VESA mode [SOLVED]
Posted: Wed Nov 03, 2010 7:47 pm
Hello Everyone,
I've written custom scrolling routine for 1024x768x32bpp VESA video mode. It scrolls 25 lines up but is very slow while implementing on the real hardware (though works fine with qemu and virtual pc). Here's the code:
The First thing I'd like to ask is that does VESA have built-in support for scrolling (without using interrupts)? And of course, if somebody knows the faster way to implement scrolling the screen, please help me with that.
Best Regards,
Chandra
I've written custom scrolling routine for 1024x768x32bpp VESA video mode. It scrolls 25 lines up but is very slow while implementing on the real hardware (though works fine with qemu and virtual pc). Here's the code:
Code: Select all
void scroll_screen_up()
{
unsigned long x=0;
unsigned long long *vidmem = (unsigned long long*)frame_buffer;
while(x<=393216)
{
x=x+1;
vidmem[x]=vidmem[x+12800]; /* Valid only for 1024x768x32bpp */
}
}
Best Regards,
Chandra