mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-24 13:30:26 +00:00
videoctrl: Add cursor_dirty flag.
If the flag is set when it comes time to draw the cursor again, then call setup_hw_cursor to update the cursor before drawing the cursor.
This commit is contained in:
parent
d134107aba
commit
e3411670cb
@ -75,6 +75,10 @@ void VideoCtrlBase::update_screen()
|
||||
}
|
||||
|
||||
if (draw_fb) {
|
||||
if (this->cursor_dirty) {
|
||||
this->setup_hw_cursor();
|
||||
this->cursor_dirty = false;
|
||||
}
|
||||
this->display.update(
|
||||
this->convert_fb_cb, this->cursor_ovl_cb,
|
||||
this->cursor_on, cursor_x, cursor_y);
|
||||
|
@ -75,6 +75,7 @@ protected:
|
||||
bool crtc_on = false;
|
||||
bool blank_on = true;
|
||||
bool cursor_on = false;
|
||||
bool cursor_dirty = false;
|
||||
int active_width; // width of the visible display area
|
||||
int active_height; // height of the visible display area
|
||||
int hori_total = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user