[Freeciv-Dev] Re: (PR#2890) get_citydlg_canvas_width() and get_citydlg_c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Dnia 2003.01.23 20:35 Jason Short via RT napisa³(a):
>
> The attached patch provides two new functions for querying the width
> and
> height of a citydlg. This is helpful because (1) it abstracts the
> is_isometric check and (2) if CITY_MAP_SIZE ever changes these values
> will also change.
>
> But, it is only a small part of the needed changes for #2 (even in the
>
> citydlg code).
>
> -----
>
> It doesn't work for gui-sdl because this client uses a scaled tileset
> for the city dialog. Although there are problems with this (the
> tileset
> is arbitrarily scaled to 48x24, which may not be appropriate), I think
>
> it can eventually be supported by use of a global tileset variable.
> So
> in tileset.h we would have
>
> struct tileset {
> ...
> } tileset;
>
> and the function would then become
>
> int get_citydlg_canvas_width(struct tileset *tileset);
>
> so gui-sdl could create its own scaled tileset, and use that instead.
>
I plan use biger H ( current H + NORMAL_TILE_HIGHT / 2 ) becouse
current I have error if tile is bigger that NORMAL_TILE_HIGHT
> Note that in this context, most of the theme graphics don't belong in
> the tileset structure.
>
And rather won't be belong.
rafal
----------------------------------------------------------------------
Czego nie wykorzystujesz, procentuje! mBIZNES Konto i mBIZNES MAX.
Efektywne oprocentowanie 5.64% i 6.59%. > http://link.interia.pl/f16c0
|
|