Permalink
Browse files

Remove conversion to RGB565

  • Loading branch information...
1 parent da77d3e commit 334bfbf6aa7f9844558b1ba36ace4edefecf04d6 @clobber clobber committed Aug 2, 2012
Showing with 9 additions and 9 deletions.
  1. +3 −3 BSNES/BSNESGameCore.mm
  2. +3 −3 FCEU/FCEUGameCore.mm
  3. +3 −3 VisualBoyAdvance/GBAGameCore.mm
View
@@ -81,7 +81,7 @@ static void video_callback(const uint16_t *data, unsigned width, unsigned height
uint16_t *dst = current->videoBuffer + y * 512;
for (int x = 0; x < width; x++) {
- dst[x] = conv555Rto565(src[x]);
+ dst[x] = src[x];
}
});
}
@@ -318,12 +318,12 @@ - (void)dealloc
- (GLenum)pixelFormat
{
- return GL_RGB;
+ return GL_BGRA;
}
- (GLenum)pixelType
{
- return GL_UNSIGNED_SHORT_5_6_5;
+ return GL_UNSIGNED_SHORT_1_5_5_5_REV;
}
- (GLenum)internalPixelFormat
View
@@ -80,7 +80,7 @@ static void video_callback(const uint16_t *data, unsigned width, unsigned height
uint16_t *dst = current->videoBuffer + y * 256;
for (int x = 0; x < width; x++) {
- dst[x] = conv555Rto565(src[x]);
+ dst[x] = src[x];
}
});
}
@@ -334,12 +334,12 @@ - (void)dealloc
- (GLenum)pixelFormat
{
- return GL_RGB;
+ return GL_BGRA;
}
- (GLenum)pixelType
{
- return GL_UNSIGNED_SHORT_5_6_5;
+ return GL_UNSIGNED_SHORT_1_5_5_5_REV;
}
- (GLenum)internalPixelFormat
@@ -75,7 +75,7 @@ static void video_callback(const uint16_t *data, unsigned width, unsigned height
uint16_t *dst = current->videoBuffer + y * 240;
for (int x = 0; x < width; x++) {
- dst[x] = conv555Rto565(src[x]);
+ dst[x] = src[x];
}
});
}
@@ -330,12 +330,12 @@ - (void)dealloc
- (GLenum)pixelFormat
{
- return GL_RGB;
+ return GL_BGRA;
}
- (GLenum)pixelType
{
- return GL_UNSIGNED_SHORT_5_6_5;
+ return GL_UNSIGNED_SHORT_1_5_5_5_REV;
}
- (GLenum)internalPixelFormat

0 comments on commit 334bfbf

Please sign in to comment.