mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
Skip partial updates when updating entire screen (#90)
This commit is contained in:
parent
5f24bd97bb
commit
4b3c344825
1 changed files with 8 additions and 2 deletions
|
@ -395,10 +395,16 @@ U0 GrUpdateScreen32()
|
||||||
while (src < size) //draw 2 pixels at a time
|
while (src < size) //draw 2 pixels at a time
|
||||||
*dst++ = gr_palette[*src++ & 0xFF] | gr_palette[*src++ & 0xFF] << 32;
|
*dst++ = gr_palette[*src++ & 0xFF] | gr_palette[*src++ & 0xFF] << 32;
|
||||||
|
|
||||||
GrCalcScreenUpdates;
|
|
||||||
|
|
||||||
if (LBtr(&sys_semas[SEMA_FLUSH_VBE_IMAGE], 0))
|
if (LBtr(&sys_semas[SEMA_FLUSH_VBE_IMAGE], 0))
|
||||||
|
{
|
||||||
MemCopy(text.fb_alias, text.raw_screen, text.buffer_size);
|
MemCopy(text.fb_alias, text.raw_screen, text.buffer_size);
|
||||||
|
src -= GR_WIDTH * GR_HEIGHT; // Reset src ptr
|
||||||
|
MemCopy(gr.screen_cache, src, GR_WIDTH * GR_HEIGHT);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
GrCalcScreenUpdates;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
U0 GrUpdateScreen()
|
U0 GrUpdateScreen()
|
||||||
|
|
Loading…
Reference in a new issue