待辦事項 #44891

sdl2: Very small unit icons in citydlg

啟用日期: 2022-06-21 18:36 最後更新: 2022-07-05 18:40

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
2

細節

Sdl2-client scales unit icons too much to citydlg. They don't nearly fill the space reserved for them.

While get_smaller_surface_rect() has problems, the main culprit here seems to be the fact that create_unit_surface() ignores the height returned by it completely. It does that for the purpose of keeping the space reserved for upkeep icons, but it does that even when no upkeep icons are to be shown.

Ticket History (3/6 Histories)

2022-06-21 18:36 Updated by: cazfi
  • New Ticket "sdl2: Very small unit icons in citydlg" created
2022-06-21 20:44 Updated by: cazfi
評語

Reply To cazfi

While get_smaller_surface_rect() has problems

-> #44892

Both of these issues need to be fixed in order to see any results ( get_smaller_surface_rect() should return correct rect, and it should be used correctly)

2022-06-28 01:59 Updated by: cazfi
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
評語

Also S2_6 patch, that handles also sdl-client, attached

2022-07-05 18:40 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入