[Freeciv-Dev] Re: bottom row of map sometimes hidden (PR#30) [patch]
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Not the most beautiful patch in the world, but it does the job. I simply
observed that if the client percieved the ysize to be one greater than the
actual size it would draw a black row at the buttom. (by drawing nothing at
all, actually)
After testing that I just grepped for occurences where the ysize
(or the valued derived from it) were used, and those places that had relevance
to draving the map I added 1 :). My understanding of the code is very basic, so
this is a patch that could use a review. It works for me, of course.
As of now the top left corner is always aligned with the tiles. This is what
causes the problem in the first place. The ideal solution would be to align the
window after the buttom left tiles if you tried to center the window on a tile
closer than (screen_tiles_height/2 -1) to the south pole, but this patch should
do for now.
-Thue
show_buttom_row-Mar-12.diff
Description: Text document
- [Freeciv-Dev] Re: bottom row of map sometimes hidden (PR#30) [patch],
Thue Janus Kristensen <=
|
|