Skip to content

Commit

Permalink
MacOS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergystepanov committed Sep 23, 2023
1 parent 56d8c4a commit e836140
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit e836140

Please sign in to comment.