diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2018-08-26 23:07:15 +0200 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2018-08-27 01:28:11 +0200 |
commit | 3d4b7c6c5f1ace54d28ae23a2d5fa4c44780ac2f (patch) | |
tree | 81ded50124f5ddab38d869d1351f5d291a9542e9 /editor/icons/icon_script_create.svg | |
parent | db55d8a4b6ad6c14f2131e02b50689eb8380276f (diff) |
When setting an X11 icon fails, try halving the size
When setting an icon that is too large previously Godot would die with a
X Error of failed request: BadLength error. To avoid this we install an
error handler right before we set an icon. If the error handler triggers
we halve the icon size until it works or until we've reached a 0 size on
either width or height.
We print a warning when this happens to alert developers.
This fixes #19716
Diffstat (limited to 'editor/icons/icon_script_create.svg')
0 files changed, 0 insertions, 0 deletions