switch back to color cursor only when we have focus again

This commit is contained in:
Ali El Gariani 2007-06-22 23:25:15 +00:00
parent c136f9af2e
commit 53aed7fe6f

View file

@ -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) {