[Freeciv-Dev] (PR#15671) SDL client: side panel hide/show buttons (delux
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=15671 >
> [dmarks - Mi 22. Feb 2006, 22:42:01]:
>
> I suggest both side panel hide/show buttons have a solid background,
> since they perform the same action. See attached pic for an example. :-)
>
> -Daniel
>
Agreed. Here's the patch and there's an updated deluxe_theme package on
my webspace:
http://web.inf.tu-dresden.de/~s3564543/freeciv-sdl/deluxe_theme-2006-02-24.tar.bz2
Index: client/gui-sdl/mapctrl.c
===================================================================
--- client/gui-sdl/mapctrl.c (Revision 11634)
+++ client/gui-sdl/mapctrl.c (Arbeitskopie)
@@ -218,7 +218,7 @@
struct unit *pFocus = unit_list_get(get_units_in_focus(), 0);
struct GUI *pBuf = pUnits_Info_Window;
- SDL_BlitSurface(pTheme->UNITS_Icon, NULL, pIcon_Widget->theme, NULL);
+ SDL_BlitSurface(pTheme->MAP_Icon, NULL, pIcon_Widget->theme, NULL);
if (pFocus) {
undraw_order_widgets();
@@ -1538,9 +1538,9 @@
/* show/hide unit's window button */
/* make UNITS Icon */
- pIcon_theme = create_surf(pTheme->UNITS_Icon->w,
- pTheme->UNITS_Icon->h, SDL_SWSURFACE);
- SDL_BlitSurface(pTheme->UNITS_Icon, NULL, pIcon_theme, NULL);
+ pIcon_theme = create_surf(pTheme->MAP_Icon->w,
+ pTheme->MAP_Icon->h, SDL_SWSURFACE);
+ SDL_BlitSurface(pTheme->MAP_Icon, NULL, pIcon_theme, NULL);
SDL_BlitSurface(pTheme->R_ARROW_Icon, NULL, pIcon_theme, NULL);
SDL_SetColorKey(pIcon_theme, SDL_SRCCOLORKEY, 0x0);
|
|