(PS3) Buildfix

This commit is contained in:
twinaphex 2015-04-10 07:46:54 +02:00
parent a8a5808b78
commit 8012b88bcb
2 changed files with 5 additions and 2 deletions

View File

@ -92,6 +92,7 @@ const frontend_ctx_driver_t *frontend_ctx_init_first(void)
return NULL; return NULL;
} }
#ifndef IS_SALAMANDER
const frontend_ctx_driver_t *frontend_get_ptr(void) const frontend_ctx_driver_t *frontend_get_ptr(void)
{ {
driver_t *driver = driver_get_ptr(); driver_t *driver = driver_get_ptr();
@ -99,3 +100,4 @@ const frontend_ctx_driver_t *frontend_get_ptr(void)
return NULL; return NULL;
return driver->frontend_ctx; return driver->frontend_ctx;
} }
#endif

View File

@ -85,9 +85,10 @@ static bool rpng_image_load_argb_shift(const char *path,
#define GX_BLIT_LINE_32(off) \ #define GX_BLIT_LINE_32(off) \
{ \ { \
unsigned x; \
const uint16_t *tmp_src = src; \ const uint16_t *tmp_src = src; \
uint16_t *tmp_dst = dst; \ uint16_t *tmp_dst = dst; \
for (unsigned x = 0; x < width2 >> 3; x++, tmp_src += 8, tmp_dst += 32) \ for (x = 0; x < width2 >> 3; x++, tmp_src += 8, tmp_dst += 32) \
{ \ { \
tmp_dst[ 0 + off] = tmp_src[0]; \ tmp_dst[ 0 + off] = tmp_src[0]; \
tmp_dst[ 16 + off] = tmp_src[1]; \ tmp_dst[ 16 + off] = tmp_src[1]; \