Skip to content

Commit

Permalink
Missing shim for infinity6b0
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed May 11, 2024
1 parent 0207f87 commit 6352bcd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion osd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ osd-inge:

osd-star6b0:
$(eval SDK = ../sdk/infinity6)
$(eval LIB = -D__SIGMASTAR__ -D__INFINITY6__ -lcam_os_wrapper -lm -lmi_rgn -lmi_sys)
$(eval LIB = -D__SIGMASTAR__ -D__INFINITY6__ -D__INFINITY6B0__ -lcam_os_wrapper -lm -lmi_rgn -lmi_sys)
$(BUILD)

osd-star6e:
Expand Down
2 changes: 2 additions & 0 deletions osd/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ void __pthread_unregister_cancel(void) {}
void *mmap(void *start, size_t len, int prot, int flags, int fd, unsigned int off) {
return (void *)syscall(SYS_mmap2, start, len, prot, flags, fd, off >> 12);
}
#elif defined(__SIGMASTAR__) && defined(__INFINITY6B0__)
void __stdin(void) {}
#endif
4 changes: 1 addition & 3 deletions osd/text.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ RECT measure_text(const char *font, double size, const char *text)
calcdim(&margin, &height, &width, text);
// Some platforms operate with a coarse pixel size of 2x2
// and rounding up is required for a sufficient canvas size
RECT rect = { .height = ceil(height), .width = ceil(width) };
rect.height += rect.height & 1;
rect.width += rect.width & 1;
RECT rect = { .height = ceil(height + (height & 1)), .width = ceil(width + (width & 1)) };

sft_freefont(sft.font);
return rect;
Expand Down

0 comments on commit 6352bcd

Please sign in to comment.