Author: alink
Date: Fri Jun 22 16:14:30 2007
New Revision: 18385
URL: http://svn.gna.org/viewcvs/wesnoth?rev=18385&view=rev
Log:
revert an optimization because some SDL functions used seems to don't work
properly on Mac
Modified:
trunk/src/cursor.cpp
Modified: trunk/src/cursor.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/cursor.cpp?rev=18385&r1=18384&r2=18385&view=diff
==============================================================================
--- trunk/src/cursor.cpp (original)
+++ trunk/src/cursor.cpp Fri Jun 22 16:14:30 2007
@@ -167,9 +167,10 @@
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 @@
// 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;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits