Browse Source

[QP] Fix up delta frame boundaries (#20296)

pull/20304/head
Nick Brassel 1 year ago
committed by GitHub
parent
commit
c3c401f91d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/python/qmk/painter_qgf.py

+ 2
- 2
lib/python/qmk/painter_qgf.py View File

@ -372,8 +372,8 @@ def _save(im, fp, filename):
delta_descriptor = QGFFrameDeltaDescriptorV1()
delta_descriptor.left = location[0]
delta_descriptor.top = location[1]
delta_descriptor.right = location[0] + size[0]
delta_descriptor.bottom = location[1] + size[1]
delta_descriptor.right = location[0] + size[0] - 1
delta_descriptor.bottom = location[1] + size[1] - 1
# Write the delta frame to the output
vprint(f'{f"Frame {idx:3d} delta":26s} {fp.tell():5d}d / {fp.tell():04X}h')


Loading…
Cancel
Save