summaryrefslogtreecommitdiff
path: root/background-image.c
diff options
context:
space:
mode:
authorSimon Plakolb <s.plakolb@gmail.com>2021-06-01 01:49:58 +0200
committerSimon Ser <contact@emersion.fr>2021-07-05 14:43:26 +0200
commit9754241080c326584303bee81547631062f9137f (patch)
treedbe6ce7eb6393b9530d7e6958f73c02b1246994b /background-image.c
parentbac71d9c8de38f4b60c347fc2b5b0684d6ebbef8 (diff)
Ensure buffer size is multiple of buffer scale
An odd value of fe.height lead to the indicator disappearing. This was due to the buffer size no longer being a multiple of the buffer scale. This commit fixes the issue by checking both height and width to be a multiple of scale. This is done early to avoid excessive re-calls of create_buffer if the buffer_height != new_height in render.c line 314 (now 318).
Diffstat (limited to 'background-image.c')
0 files changed, 0 insertions, 0 deletions