Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9463/src
Modified Files:
Tag: supertux_0_1_1_branch
leveleditor.cpp
Log Message:
Mini-map related tweaks:
- Show mini-map in mouse movement, as well;
- Removed the 'to fix' comment, related to the SDL use, since it has been already fixed;
- Changed the map selection lines color.
Index: leveleditor.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/leveleditor.cpp,v
retrieving revision 1.109.2.1
retrieving revision 1.109.2.2
diff -u -d -r1.109.2.1 -r1.109.2.2
--- leveleditor.cpp 15 May 2004 22:22:54 -0000 1.109.2.1
+++ leveleditor.cpp 26 Jul 2004 13:56:08 -0000 1.109.2.2
@@ -780,10 +780,10 @@
fillrect(left_offset, 0, le_world->get_level()->width*mini_tile_width, 15*4, 200, 200, 200, 128);
- fillrect(left_offset + (pos_x/32)*mini_tile_width, 0, 19*mini_tile_width, 2, 200, 200, 200, 200);
- fillrect(left_offset + (pos_x/32)*mini_tile_width, 0, 2, 15*4, 200, 200, 200, 200);
- fillrect(left_offset + (pos_x/32)*mini_tile_width + 19*mini_tile_width - 2, 0, 2, 15*4, 200, 200, 200, 200);
- fillrect(left_offset + (pos_x/32)*mini_tile_width, 15*4-2, 19*mini_tile_width, 2, 200, 200, 200, 200);
+ fillrect(left_offset + (pos_x/32)*mini_tile_width, 0, 19*mini_tile_width, 1, 255, 255, 255, 255);
+ fillrect(left_offset + (pos_x/32)*mini_tile_width, 0, 1, 15*4, 255, 255, 255, 255);
+ fillrect(left_offset + (pos_x/32)*mini_tile_width + 19*mini_tile_width, 0, 1, 15*4, 255, 255, 255, 255);
+ fillrect(left_offset + (pos_x/32)*mini_tile_width, 15*4-2, 19*mini_tile_width, 1, 255, 255, 255, 255);
}
@@ -804,7 +804,7 @@
}
}
- if(show_minimap) // use_gl because the minimap isn't shown correctly in software mode. Any idea? FIXME Possible reasons: SDL_SoftStretch is a hack itsself || an alpha blitting issue SDL can't handle in software mode
+ if(show_minimap)
le_drawminimap();
if(show_selections && MouseCursor::current() != mouse_select_object)
@@ -1574,6 +1574,8 @@
break;
}
+ if(le_mouse_pressed[RIGHT])
+ show_minimap = true;
}
}
|