- helper function for setting up the summary screen.

This commit is contained in:
Christoph Oelckers 2020-10-04 15:14:30 +02:00
parent b902440535
commit 43eb7d61e7

View file

@ -135,6 +135,22 @@ class StatusScreen abstract play version("2.5")
int scaleFactorX, scaleFactorY; int scaleFactorX, scaleFactorY;
//====================================================================
//
// Set fixed size mode.
//
//====================================================================
void SetSize(int width, int height, int wrapw = -1, int scalemode = FSMode_ScaleToFit43)
{
cwidth = width;
cheight = height;
scalemode = FSMode_ScaleToFit43;
scalefactorx = 1;
scalefactory = 1;
wrapwidth = wrapw == -1 ? width : wrapw;;
}
//==================================================================== //====================================================================
// //
// Draws a single character with a shadow // Draws a single character with a shadow