Ticket #45254

S2_6 gtk3-client left panel unit icons cropped

Open Date: 2022-07-28 09:02 Last Update: 2022-07-29 22:57

Reporter:
Owner:
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

In S2_6 gtk3-client unit buttons on left panel are weirdly cropped.

gtk3.22-client is not, and I think it's side effect of https://www.hostedredmine.com/issues/858871 fix. It was not applied to gtk3-client as:

"Gtk2 is fine, as is Gtk3 on S2_6. This is anti-correlated with use of gtk_pixcomm for unit_below_pixmap[]. I'm guessing that gtk_pixcomm was setting a fixed size request, and the new arrangement is not."

We've since had to get rid of gtk_pixcomm in S2_6 gtk3-client, so maybe it has brought the problem there.

Ticket History (3/5 Histories)

2022-07-28 09:02 Updated by: cazfi
  • New Ticket "S2_6 gtk3-client left panel unit icons cropped" created
2022-07-28 09:26 Updated by: cazfi
Comment

hrm #858871 is just a part of the problem. The other part is that put_unit_image() defaults to having canvas of the size of the unit sprite. But when it calls put_unit(), that applies offsets -> unit is not drawn to the top of the canvas.

2022-07-28 09:58 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
2022-07-29 22:57 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login