Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS fix #409

Merged
merged 1 commit into from
Sep 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pkg/worker/caged/libretro/image/canvas.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ __inline uint32_t _8888rev(uint32_t px) {
void RGBA(int pix, uint32_t *__restrict dst, void *__restrict source, int y, int h, int w, int hh, int dw, int pad, int rot) {
int x;
xy rxy;
uint16_t *src16;
uint32_t *src32;

switch (pix) {
//case BIT_SHORT5551:
// break;
case BIT_INT_8888REV:
uint32_t *src32 = source;
src32 = (uint32_t *)source;
int pad32 = pad >> 2;
if (rot == NO_ROT) {
for (; y < h; ++y) {
Expand All @@ -59,7 +61,7 @@ void RGBA(int pix, uint32_t *__restrict dst, void *__restrict source, int y, int
}
break;
case BIT_SHORT565:
uint16_t *src16 = source;
src16 = (uint16_t *)source;
int pad16 = pad >> 1;
if (rot == NO_ROT) {
for (; y < h; ++y) {
Expand Down