[Freeciv-Dev] Re: (PR#7387) Unified overview broke win32 client
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=7387 >
James Canete wrote:
>>I don't see why you have to change code which draws indicators.
>
> I moved the indicator drawing code because previously it was part of the
> overview drawing code. Before the patch, the overview was simply drawn
> in the main window at the appropriate position. I created a separate
> window for it in init_overview_win() so I could get an hdc to supply to
> a canvas store. I separated the main window painting code (which was
> originally part of overview_expose() ) into mainwin_paint().
Note that you can put an (origin_x, origin_y, width, height) into the
canvas store. Thus the "canvas store" can be just a small rectangle on
a larger window.
Giving the overview its own window is probably a good idea, but I'd
suggest it be done separately.
jason
|
|