mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add text outline as an accessibility option
This commit is contained in:
@@ -31,6 +31,7 @@ Graphics::Graphics()
|
||||
|
||||
showcutscenebars = false;
|
||||
cutscenebarspos = 0;
|
||||
notextoutline = false;
|
||||
|
||||
flipmode = false;
|
||||
setflipmode = false;
|
||||
@@ -380,19 +381,22 @@ void Graphics::bprint( int x, int y, std::string t, int r, int g, int b, bool ce
|
||||
{
|
||||
|
||||
//printmask(x, y, t, cen);
|
||||
Print(x, y - 1, t, 0, 0, 0, cen);
|
||||
if (cen)
|
||||
if (!notextoutline)
|
||||
{
|
||||
//TODO find different
|
||||
PrintOff(-1, y, t, 0, 0, 0, cen);
|
||||
PrintOff(1, y, t, 0, 0, 0, cen);
|
||||
Print(x, y - 1, t, 0, 0, 0, cen);
|
||||
if (cen)
|
||||
{
|
||||
//TODO find different
|
||||
PrintOff(-1, y, t, 0, 0, 0, cen);
|
||||
PrintOff(1, y, t, 0, 0, 0, cen);
|
||||
}
|
||||
else
|
||||
{
|
||||
Print(x -1, y, t, 0, 0, 0, cen);
|
||||
Print(x +1, y, t, 0, 0, 0, cen);
|
||||
}
|
||||
Print(x, y+1, t, 0, 0, 0, cen);
|
||||
}
|
||||
else
|
||||
{
|
||||
Print(x -1, y, t, 0, 0, 0, cen);
|
||||
Print(x +1, y, t, 0, 0, 0, cen);
|
||||
}
|
||||
Print(x, y+1, t, 0, 0, 0, cen);
|
||||
|
||||
Print(x, y, t, r, g, b, cen);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user