mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 02:17:05 +00:00
changed fullscreen dim level to match close original
This commit is contained in:
parent
7b40e69241
commit
c8e6b17e81
@ -799,7 +799,7 @@ void DriverGL::dimScreen() {
|
||||
uint8 r = (pixel & 0xFF0000) >> 16;
|
||||
uint8 g = (pixel & 0x00FF00) >> 8;
|
||||
uint8 b = (pixel & 0x0000FF);
|
||||
uint32 color = (r + g + b) / 6;
|
||||
uint32 color = (r + g + b) / 10;
|
||||
data[l] = ((color & 0xFF) << 16) | ((color & 0xFF) << 8) | (color & 0xFF);
|
||||
}
|
||||
}
|
||||
|
@ -546,7 +546,7 @@ void DriverTinyGL::dimScreen() {
|
||||
uint8 r = (pixel & 0xF800) >> 8;
|
||||
uint8 g = (pixel & 0x07E0) >> 3;
|
||||
uint8 b = (pixel & 0x001F) << 3;
|
||||
uint32 color = (r + g + b) / 6;
|
||||
uint32 color = (r + g + b) / 10;
|
||||
data[l] = ((color & 0xF8) << 8) | ((color & 0xFC) << 3) | (color >> 3);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user