switch back to color cursor only when we have focus again
This commit is contained in:
parent
c136f9af2e
commit
53aed7fe6f
1 changed files with 5 additions and 5 deletions
|
@ -230,6 +230,11 @@ void draw(surface screen)
|
|||
current_cursor = NORMAL;
|
||||
}
|
||||
|
||||
if(have_focus == false) {
|
||||
cursor_buf = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!colour_ready) {
|
||||
// display start to draw cursor
|
||||
// so it can now display colour cursor
|
||||
|
@ -238,11 +243,6 @@ void draw(surface screen)
|
|||
set();
|
||||
}
|
||||
|
||||
if(have_focus == false) {
|
||||
cursor_buf = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
//FIXME: don't parse the file path every time
|
||||
const surface surf(image::get_image("cursors/" + colour_images[current_cursor],image::UNSCALED));
|
||||
if(surf == NULL) {
|
||||
|
|
Loading…
Add table
Reference in a new issue