mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 23:29:55 -06:00
no master brightness when screen is disabled.
This commit is contained in:
@ -270,6 +270,8 @@ void GPU2D::DrawScanline(u32 line)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// master brightness
|
// master brightness
|
||||||
|
if (dispmode != 0)
|
||||||
|
{
|
||||||
if ((MasterBrightness >> 14) == 1)
|
if ((MasterBrightness >> 14) == 1)
|
||||||
{
|
{
|
||||||
// up
|
// up
|
||||||
@ -312,6 +314,7 @@ void GPU2D::DrawScanline(u32 line)
|
|||||||
dst[i] = r | g | b;
|
dst[i] = r | g | b;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// convert to 32-bit RGBA
|
// convert to 32-bit RGBA
|
||||||
for (int i = 0; i < 256; i++)
|
for (int i = 0; i < 256; i++)
|
||||||
|
Reference in New Issue
Block a user