mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-23 12:42:36 +00:00
UI_WIDTH and UI_HEIGHT symbols.
This commit is contained in:
parent
bd06ca607a
commit
6ad0f555d4
1 changed files with 7 additions and 4 deletions
|
@ -594,10 +594,13 @@ static void UI_ExportSymbols()
|
|||
const char* fname = s_symbols_temp_file_name;
|
||||
if (trap_FS_FOpenFile(fname, &f, FS_WRITE) >= 0)
|
||||
{
|
||||
DefineSymbol(f, "UI_MINX", va("%.0f", uiInfo.uiDC.min[0]));
|
||||
DefineSymbol(f, "UI_MINY", va("%.0f", uiInfo.uiDC.min[1]));
|
||||
DefineSymbol(f, "UI_MAXX", va("%.0f", uiInfo.uiDC.max[0]));
|
||||
DefineSymbol(f, "UI_MAXY", va("%.0f", uiInfo.uiDC.max[1]));
|
||||
DefineSymbol(f, "UI_MINX", va("%f", uiInfo.uiDC.min[0]));
|
||||
DefineSymbol(f, "UI_MINY", va("%f", uiInfo.uiDC.min[1]));
|
||||
DefineSymbol(f, "UI_MAXX", va("%f", uiInfo.uiDC.max[0]));
|
||||
DefineSymbol(f, "UI_MAXY", va("%f", uiInfo.uiDC.max[1]));
|
||||
|
||||
DefineSymbol(f, "UI_WIDTH", va("%f", uiInfo.uiDC.max[0] - uiInfo.uiDC.min[0]));
|
||||
DefineSymbol(f, "UI_HEIGHT", va("%f", uiInfo.uiDC.max[1] - uiInfo.uiDC.min[1]));
|
||||
|
||||
trap_FS_FCloseFile(f);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue