Gleb Mazovetskiy
ba34bafb3f
Use SDL events directly
...
Removes redundant miniwin events and queue, using SDL events directly instead.
Demo migrated using this script: https://gist.github.com/glebm/8a73b04f695de96f344cc2e35151e03e
4 years ago
obligaron
40283ca69e
Introduce timedemo based tests
4 years ago
Gleb Mazovetskiy
197e1180b2
Add StrCat and StrAppend
...
Adds simple string / integer concatenation functions.
Many of the uses of `fmt::format` are simply concatenation
of a few strings and integers.
`StrCat` is an easier-to-read alternative to such uses of `fmt`.
4 years ago
Anders Jenbo
c7f19336c9
[xbox] Initialize the video system and specify search path
4 years ago
Gleb Mazovetskiy
4063afb792
Xbox NXDK platform
4 years ago
Anders Jenbo
99181fd709
Move more files to the engine folder
4 years ago
Andrew James
0add7a8af6
Define sizes using Size type in control.cpp/stash.cpp ( #4737 )
...
* Use appropriate types for size constants in control.cpp
* Declare constexpr value for iterating over the cells in a stash grid
* Use appropriate type for UIRectangle dimensions
4 years ago
Gleb Mazovetskiy
9d2948c782
Loading screen: Free the background early
...
Frees the background after blitting it once in the loading screen.
This gives the game more RAM for the actual loading.
4 years ago
Gleb Mazovetskiy
ede7eab7e8
Fix `-wnarrowing` from `SDL_Rect` construction
4 years ago
obligaron
d86c4e5d84
Introduce GetUIRectangle() to distinguish between UI and main panel
4 years ago
obligaron
5337bf1f6a
Initialize Viewport in CalculatePanelAreas
4 years ago
ephphatha
7f15aa730d
Move definition of ghMainWnd to utils/display.cpp
...
This variable is controlled/set by the code in that file, this also lets other files have more specific/relevant includes instead of the monolith that is diablo.h
4 years ago
Anders Jenbo
34201c7881
Do not set scaling hint with out a render
4 years ago
staphen
84475f29ae
[Windows] Recreate the whole window if the renderer would otherwise freeze
4 years ago
Bubio
57d5fd0e62
Fix #4251 macOS mouse grab issue ( #4298 )
4 years ago
staphen
8d5b709749
Restore default Windows audio driver (WASAPI)
4 years ago
Felipe Wannmacher
8efbcf2058
Xbox One/Series support ( #3946 )
4 years ago
Anders Jenbo
0c109cbfb1
[touch] Update interface scaling when switching fullscreen mode
4 years ago
Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
4 years ago
Anders Jenbo
68e5805f1b
[touch] Adjust controller position after changing resolution
...
Fixes #3791
4 years ago
Anders Jenbo
cf9b5ae79d
Split up graphics settings initializers
4 years ago
Anders Jenbo
0e2aac8cfe
Allow for software based rendering
4 years ago
Anders Jenbo
24a15d90e2
Do not recreate the render when switching scalingn quality
4 years ago
Anders Jenbo
7d239d9f89
Scale resolution to true values
4 years ago
ephphatha
530604c529
Prefer DX11 renderer if running on windows with vsync active
...
This works around a bug in DX9 on Win11.
4 years ago
staphen
3a802ae270
Apply clang-format to display.cpp
4 years ago
Anders Jenbo
94fa772ce6
Fix SDL < 2.0.10 builds
4 years ago
Anders Jenbo
901d9aa435
Fix SDL < 2.0.6 builds
4 years ago
JoBergeron
6af1be7b13
[ios] Fixed bluetooth mouse support
4 years ago
obligaron
5e2ad66e64
Add OptionEntry Resolution
4 years ago
staphen
f897f5fd92
Resize PalSurface when resizing the game window
4 years ago
Anders Jenbo
d9d72fbbc7
[ios] Enable high resolution support
4 years ago
qndel
82a5b6315c
fix typo 'prefered' ( #3677 )
4 years ago
Anders Jenbo
157570a1f2
Handle screen orientation
4 years ago
obligaron
2e5a488d5f
Add OptionEntry for graphics
4 years ago
obligaron
eb7b9d7054
Introduce ResizeWindow()
4 years ago
obligaron
b5aab383d9
Introduce ReinitializeRenderer() and GetPreferedWindowSize()
4 years ago
obligaron
21e04d3352
Add OptionEntry Grab Input
4 years ago
obligaron
af4f732ef1
Add OptionEntry Scaling Quality
4 years ago
obligaron
677303cba9
Reduce use of view globals in game menu
4 years ago
staphen
b5d96665c9
Enable SDL1 build option for Windows
4 years ago
Vladimir Olteanu
b87058a717
Error checking for GetOutputSurface
5 years ago
Vladimir Olteanu
4edafd2e37
Make RendererTextureSurface a SDLSurfaceUniquePtr
5 years ago
Vladimir Olteanu
cc9ea97e0f
Introduce SDLWrap::CreateTexture
5 years ago
Vladimir Olteanu
5d54f8d322
Introduce SDLWrap::CreateRGBSurface
5 years ago
obligaron
26e61b363b
demo: Centralize options override
5 years ago
obligaron
77f9bded9e
Introduce demo namespace
5 years ago
Anders Jenbo
eda4a5061e
Implement demo recording and playback
...
This records all keyboard and mouse events to a file and lets you play
it back at a later point with a differen game speed.
5 years ago
Anders Jenbo
3affe2eb2a
Fix SDL1 builds
5 years ago
Anders Jenbo
9dd7de027f
Limit screen to landscape mode
5 years ago