X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_unai%2Fgpu.cpp;h=3c30ffafdf0d34b4d70df9943a08bd088f81cf8e;hp=f0539c038a31022980c1a5cfeb216188d3c5f806;hb=4ea7de6a1495abfbc49c54fd2a90e902fdfa13d9;hpb=adc3fd64c84fe1ef736fb80eb83145551ace4bbb diff --git a/plugins/gpu_unai/gpu.cpp b/plugins/gpu_unai/gpu.cpp index f0539c03..3c30ffaf 100644 --- a/plugins/gpu_unai/gpu.cpp +++ b/plugins/gpu_unai/gpu.cpp @@ -821,7 +821,7 @@ void GPU_updateLace(void) #else #include "../../frontend/plugin_lib.h" -#include "../../frontend/cspace.h" +#include "../gpulib/cspace.h" extern "C" { @@ -861,19 +861,22 @@ static void blit(void) if (isRGB24) { -#ifndef MAEMO - for (; h1-- > 0; dest += w0 * 3, fb_offs += 1024) + if (!cbs->only_16bpp) { - fb_offs &= 1024*512-1; - bgr888_to_rgb888(dest, base + fb_offs, w0 * 3); + for (; h1-- > 0; dest += w0 * 3, fb_offs += 1024) + { + fb_offs &= 1024*512-1; + bgr888_to_rgb888(dest, base + fb_offs, w0 * 3); + } } -#else - for (; h1-- > 0; dest += w0 * 2, fb_offs += 1024) + else { - fb_offs &= 1024*512-1; - bgr888_to_rgb565(dest, base + fb_offs, w0 * 3); + for (; h1-- > 0; dest += w0 * 2, fb_offs += 1024) + { + fb_offs &= 1024*512-1; + bgr888_to_rgb565(dest, base + fb_offs, w0 * 3); + } } -#endif } else {