Skip to content

Commit

Permalink
osd: fix hd pos bit size
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Jan 12, 2025
1 parent a82bbe7 commit d62b68b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/osd/render.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ typedef struct {
uint32_t attribute : 1;
uint32_t pos_sd_x : 5;
uint32_t pos_sd_y : 5;
uint32_t pos_hd_x : 7;
uint32_t pos_hd_y : 7;
uint32_t _unused : 6;
uint32_t pos_hd_x : 8;
uint32_t pos_hd_y : 8;
uint32_t _unused : 4;
} __attribute__((packed)) osd_element_t;

#define ENCODE_OSD_ELEMENT(active, attr, sd_x, sd_y, hd_x, hd_y) ((hd_y << 20) | (hd_x << 12) | (sd_y << 7) | (sd_x << 2) | (attr << 1) | active)
Expand Down

0 comments on commit d62b68b

Please sign in to comment.