revert an optimization...
...because some SDL functions used seems to don't work properly on Mac
This commit is contained in:
parent
0975305606
commit
dc232ad8e5
1 changed files with 5 additions and 5 deletions
|
@ -167,9 +167,10 @@ void set(CURSOR_TYPE type)
|
|||
|
||||
SDL_Cursor * cursor_image = get_cursor(new_cursor);
|
||||
|
||||
if (cursor_image != NULL && cursor_image != SDL_GetCursor()) {
|
||||
// cause problem on mac:
|
||||
//if (cursor_image != NULL && cursor_image != SDL_GetCursor())
|
||||
SDL_SetCursor(cursor_image);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void set_dragging(bool drag)
|
||||
|
@ -226,10 +227,9 @@ void draw(surface screen)
|
|||
// display start to draw cursor
|
||||
// so it can now display colour cursor
|
||||
colour_ready = true;
|
||||
// reset the cursor to be sure that we hide the b&w
|
||||
set();
|
||||
}
|
||||
|
||||
// reset the cursor to be sure that we hide the b&w
|
||||
set();
|
||||
|
||||
if(have_focus == false) {
|
||||
cursor_buf = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue