changed fullscreen dim level to match close original

This commit is contained in:
Pawel Kolodziejski 2007-01-29 21:21:21 +00:00
parent 7b40e69241
commit c8e6b17e81
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}