dhewm3/neo
Daniel Gibson cd0a11f974 Allow scaling non-menu WIN_DESKTOP GUIs to 4:3
WIN_DESKTOP means that this can currently only be set for the top-level
window in a .gui (all its subwindows/widgets will be scaled implicitly)

There are two ways to make a GUI use this:
1. in the .gui add a window variable "scaleto43 1", like
    windowDef Desktop {
	rect	0 ,0 ,640 ,480
	nocursor	1
	float	talk 	0

	scaleto43 1

	// .. etc rest of windowDef

2. When creating the GUI from C++ code, you can afterwards make the
   UserInterface scale to 4:3 like this:
    idUserInterface* ui = Whatever(); // create it
    ui->SetStateBool("scaleto43", true);
    ui->StateChanged(gameLocal.time);
   Both lines are important!

As you can see in my changes to Player.cpp, my primary usecase for this
is the cursor/crosshair GUI.
2018-11-05 04:33:57 +01:00
..
cm more fixes for Visual Studio 14 2015-10-11 23:27:42 +02:00
d3xp Allow scaling non-menu WIN_DESKTOP GUIs to 4:3 2018-11-05 04:33:57 +01:00
framework idCommon::SetCallback() and GetAdditionalFunction() - for Mods 2018-09-30 05:06:20 +02:00
game Allow scaling non-menu WIN_DESKTOP GUIs to 4:3 2018-11-05 04:33:57 +01:00
idlib import AROS changes 2017-04-02 00:42:28 +01:00
MayaImport s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
renderer Scale "Menu" GUIs (incl. PDA + fullscreen vids) to 4:3 2018-10-28 05:29:11 +01:00
sound Fix entering the menu or saving the game stopping some sounds. 2018-08-19 16:58:44 +02:00
sys Tell Windows we're High DPI aware, (hopefully) fixes #191 2018-07-14 20:54:21 +02:00
tools Some spelling error fixes found during Debian build 2018-06-30 00:08:45 -01:00
TypeInfo Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
ui Allow scaling non-menu WIN_DESKTOP GUIs to 4:3 2018-11-05 04:33:57 +01:00
CMakeLists.txt GCC/Clang: Don't use -ffast-math, Debug Build with -O0 2018-11-05 04:33:57 +01:00
config.h.in Introduce CMAKE_INSTALL_PREFIX relative paths 2012-07-04 02:18:42 +02:00
mmakefile.src # move the AROS specific folder icon and default.cfg mmakefile.src under neo/sys/aros/setup 2017-04-22 16:21:14 +02:00