mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-01 03:18:07 +03:00
Grayscale initial palette for better antialias
This commit is contained in:
+5
-1
@@ -157,7 +157,11 @@ AGS::AGS(NACT* parent) : nact(parent)
|
||||
program_palette[0xcf] = SETPALETTE16(0xf, 0xf, 0xf);
|
||||
program_palette[0xdf] = SETPALETTE16(0xf, 0xf, 0xf);
|
||||
program_palette[0xef] = SETPALETTE16(0xf, 0xf, 0xf);
|
||||
program_palette[0xff] = SETPALETTE16(0xf, 0xf, 0xf);
|
||||
|
||||
// This improves text antialias
|
||||
for (int i = 1; i <= 0xf; i++)
|
||||
program_palette[0xf0 + i] = SETPALETTE16(i, i, i);
|
||||
|
||||
memcpy(screen_palette, program_palette, sizeof(program_palette));
|
||||
|
||||
// Bコマンド
|
||||
|
||||
Reference in New Issue
Block a user