summaryrefslogtreecommitdiff
path: root/editor/animation_track_editor.cpp
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2018-08-26 23:07:15 +0200
committerHein-Pieter van Braam <hp@tmm.cx>2018-08-27 01:28:11 +0200
commit3d4b7c6c5f1ace54d28ae23a2d5fa4c44780ac2f (patch)
tree81ded50124f5ddab38d869d1351f5d291a9542e9 /editor/animation_track_editor.cpp
parentdb55d8a4b6ad6c14f2131e02b50689eb8380276f (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/animation_track_editor.cpp')
0 files changed, 0 insertions, 0 deletions