mirror of
https://github.com/libretro/gambatte-libretro.git
synced 2024-11-23 07:49:48 +00:00
Some minor cleanup.
This commit is contained in:
parent
b3c2de90f8
commit
367f89a075
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user