mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-21 20:21:19 +00:00
README: formatting
This commit is contained in:
parent
f264b09915
commit
c198d4ebeb
1 changed files with 4 additions and 4 deletions
|
@ -126,8 +126,8 @@ However, you can still enable this for your WIN_DESKTOP GUIs, either in the .gui
|
||||||
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).
|
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:
|
There are two ways to make a GUI use this:
|
||||||
1. in the .gui add a window variable `scaleto43 1`, like
|
1. in the **.gui** add a window variable `scaleto43 1`, like
|
||||||
```
|
```
|
||||||
windowDef Desktop {
|
windowDef Desktop {
|
||||||
rect 0 ,0 ,640 ,480
|
rect 0 ,0 ,640 ,480
|
||||||
nocursor 1
|
nocursor 1
|
||||||
|
@ -136,9 +136,9 @@ There are two ways to make a GUI use this:
|
||||||
scaleto43 1
|
scaleto43 1
|
||||||
|
|
||||||
// .. etc rest of windowDef
|
// .. etc rest of windowDef
|
||||||
```
|
```
|
||||||
|
|
||||||
2. When creating the GUI from C++ code, you can afterwards make the
|
2. When creating the GUI from **C++ code**, you can afterwards make the
|
||||||
UserInterface scale to 4:3 like this:
|
UserInterface scale to 4:3 like this:
|
||||||
```c++
|
```c++
|
||||||
idUserInterface* ui = Whatever(); // create it
|
idUserInterface* ui = Whatever(); // create it
|
||||||
|
|
Loading…
Reference in a new issue