diff options
author | notaz | 2012-04-29 19:18:49 +0300 |
---|---|---|
committer | notaz | 2012-04-29 19:32:08 +0300 |
commit | 4ea7de6a1495abfbc49c54fd2a90e902fdfa13d9 (patch) | |
tree | f062e83f543a583e75ca58e88511f79057464a93 /plugins/gpu_unai | |
parent | b07c18e8645a17be916266820ae564e0d320cc1a (diff) | |
download | pcsx_rearmed-4ea7de6a1495abfbc49c54fd2a90e902fdfa13d9.tar.gz pcsx_rearmed-4ea7de6a1495abfbc49c54fd2a90e902fdfa13d9.tar.bz2 pcsx_rearmed-4ea7de6a1495abfbc49c54fd2a90e902fdfa13d9.zip |
gpu plugins: always support 16bpp blit
use this for generic sdl and maemo
Diffstat (limited to 'plugins/gpu_unai')
-rw-r--r-- | plugins/gpu_unai/gpu.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/plugins/gpu_unai/gpu.cpp b/plugins/gpu_unai/gpu.cpp index 5a0ad2c..3c30ffa 100644 --- a/plugins/gpu_unai/gpu.cpp +++ b/plugins/gpu_unai/gpu.cpp @@ -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 { |