Skip to content
This repository
Browse code

Remove conversion to RGB565

  • Loading branch information...
commit 334bfbf6aa7f9844558b1ba36ace4edefecf04d6 1 parent da77d3e
clobber authored August 02, 2012
6  BSNES/BSNESGameCore.mm
@@ -81,7 +81,7 @@ static void video_callback(const uint16_t *data, unsigned width, unsigned height
81 81
         uint16_t *dst = current->videoBuffer + y * 512;
82 82
 
83 83
         for (int x = 0; x < width; x++) {
84  
-            dst[x] = conv555Rto565(src[x]);
  84
+            dst[x] = src[x];
85 85
         }
86 86
     });
87 87
 }
@@ -318,12 +318,12 @@ - (void)dealloc
318 318
 
319 319
 - (GLenum)pixelFormat
320 320
 {
321  
-    return GL_RGB;
  321
+    return GL_BGRA;
322 322
 }
323 323
 
324 324
 - (GLenum)pixelType
325 325
 {
326  
-    return GL_UNSIGNED_SHORT_5_6_5;
  326
+    return GL_UNSIGNED_SHORT_1_5_5_5_REV;
327 327
 }
328 328
 
329 329
 - (GLenum)internalPixelFormat
6  FCEU/FCEUGameCore.mm
@@ -80,7 +80,7 @@ static void video_callback(const uint16_t *data, unsigned width, unsigned height
80 80
         uint16_t *dst = current->videoBuffer + y * 256;
81 81
         
82 82
         for (int x = 0; x < width; x++) {
83  
-            dst[x] = conv555Rto565(src[x]);
  83
+            dst[x] = src[x];
84 84
         }
85 85
     });
86 86
 }
@@ -334,12 +334,12 @@ - (void)dealloc
334 334
 
335 335
 - (GLenum)pixelFormat
336 336
 {
337  
-    return GL_RGB;
  337
+    return GL_BGRA;
338 338
 }
339 339
 
340 340
 - (GLenum)pixelType
341 341
 {
342  
-    return GL_UNSIGNED_SHORT_5_6_5;
  342
+    return GL_UNSIGNED_SHORT_1_5_5_5_REV;
343 343
 }
344 344
 
345 345
 - (GLenum)internalPixelFormat
6  VisualBoyAdvance/GBAGameCore.mm
@@ -75,7 +75,7 @@ static void video_callback(const uint16_t *data, unsigned width, unsigned height
75 75
         uint16_t *dst = current->videoBuffer + y * 240;
76 76
         
77 77
         for (int x = 0; x < width; x++) {
78  
-            dst[x] = conv555Rto565(src[x]);
  78
+            dst[x] = src[x];
79 79
         }
80 80
     });
81 81
 }
@@ -330,12 +330,12 @@ - (void)dealloc
330 330
 
331 331
 - (GLenum)pixelFormat
332 332
 {
333  
-    return GL_RGB;
  333
+    return GL_BGRA;
334 334
 }
335 335
 
336 336
 - (GLenum)pixelType
337 337
 {
338  
-    return GL_UNSIGNED_SHORT_5_6_5;
  338
+    return GL_UNSIGNED_SHORT_1_5_5_5_REV;
339 339
 }
340 340
 
341 341
 - (GLenum)internalPixelFormat

0 notes on commit 334bfbf

Please sign in to comment.
Something went wrong with that request. Please try again.