Some minor cleanup.

This commit is contained in:
Alcaro 2014-06-13 13:00:46 +02:00
parent b3c2de90f8
commit 367f89a075
2 changed files with 2 additions and 3 deletions

View File

@ -123,11 +123,11 @@ size_t GB::stateSize() const {
}
void GB::setColorCorrection(bool enable) {
p_->cpu.display_setColorCorrection(enable);
p_->cpu.display_setColorCorrection(enable);
}
video_pixel_t GB::gbcToRgb32(const unsigned bgr15) {
return p_->cpu.display_gbcToRgb32(bgr15);
return p_->cpu.display_gbcToRgb32(bgr15);
}
}

View File

@ -38,7 +38,6 @@ video_pixel_t LCD::gbcToRgb32(const unsigned bgr15) {
static video_pixel_t gbcToRgbCalc(const unsigned bgr15, bool colorCorrection) {
if (colorCorrection) {
#ifdef VIDEO_RGB565
//If (whatever made the Gambatte devs create this somewhat arcane configuration) is not a concern, it can be replaced with simply 'return bgr15'.
const unsigned r = bgr15 & 0x1F;
const unsigned g = bgr15 >> 5 & 0x1F;
const unsigned b = bgr15 >> 10 & 0x1F;