Anders Jenbo
4bf4ebeb19
Correct navigation in the difficulty select screen
6 years ago
Anders Jenbo
3ef2228d85
[switch] Leave TextInput running
...
Text mode is on by default. Calling SDL_StartTextInput() will start the
virual keyboard, but does not allow for a default value. Calling it as
well as switch_start_text_input() will start the keyboard a secound
time.
We still turn TextInput off on other platforms when it's not needed as
it can require additional resources.
6 years ago
Anders Jenbo
93358a290c
[SDL1.2] Check if an appropriate video mode exists for the given movie
...
This lets us fall back to software scaling for devices that do not
support a video mode that matches the given video.
6 years ago
Juliano Leal Goncalves
78dbbcf439
Mark executable as DPI aware (per monitor)
6 years ago
Juliano Leal Goncalves
c8da8d7e78
Add integer scaling support. Disabled by default.
6 years ago
Marcin Konicki
9a70a5c644
Prevent double free of sound chunk in storm ( #744 )
6 years ago
Marcin Konicki
aace1b46de
Implement `--save-dir` CLI option
...
* Lazy load ini, this also fixes launching the game on Android
6 years ago
Marek Majkowski
c8f9219d35
Bugfix: allow players of level 20 to enter nightmare game
...
Right now we update heroLevel only on "CreateGame" code. This
means you can't enter nightmare/hell game at all - unless you
do createGame first. Let's set the heroLevel global variable in both
create and join game cases.
6 years ago
BDC
741cdb2494
Fix memory leak with audio stream not been released
...
SFileChunk was not been release.
6 years ago
Yuri Pourre
b152633011
Bugfix: allows resize when fullscreen is toggled
6 years ago
Gleb Mazovetskiy
611f7f109e
Map Start + L1/R1 to char/inventory ( #655 )
...
It's common to access char and inventory and this is easier to press than Start + ←/→ on devices that have shoulder buttons
6 years ago
Anders Jenbo
6d9089ec87
Fix compiler warning
6 years ago
Gleb Mazovetskiy
68a0c3a786
Use LF for Markdown files instead of CRLF
...
Ensures the contents can be easily copy-pasted into the terminal from
most editors on all systems.
Otherwise, on Linux, you get 2 newlines for each newline in the source
when copying from VS Code.
6 years ago
Anders Jenbo
82f72713ed
Load current heros level from save game when on difficulty screen
...
Fixes #566
The hero is unloaded before entering this screen from a game, hacking
the game to track the hero level would not work with single player
(planned to also have a select screen) so the only proper solution is to
load the info from the save game. Using gszHero allows us to stay synced
with the engine.
6 years ago
Anders Jenbo
a31a730cf3
Default to 60hz if the driver doesn't return a usable value
6 years ago
Robin Eklind
21e2d2f9de
Resolve CreatePalette name conflict
...
Fixes #641 .
6 years ago
Anders Jenbo
e6f1faea0e
Revert "Correctly detect player level on difficulty selection screen ( #626 )"
...
This reverts commit e6b6501079 .
6 years ago
SeanHenderson
e6b6501079
Correctly detect player level on difficulty selection screen ( #626 )
6 years ago
Gleb Mazovetskiy
12d0338862
dvlnet: Better error on packet type mismatch
6 years ago
Gleb Mazovetskiy
a2ab6e1e6f
storm_net: Prevent crashing during crash handling
...
An error when creating/joining a game was masked by null pointer
dereference
6 years ago
Anders Jenbo
bd6eebedb1
Drop storm_dx.cpp
6 years ago
Gleb Mazovetskiy
d1f41e4676
Controls: B button closes currently active panel
...
This was requested several times and I myself keep trying to use B to
close panels.
6 years ago
Gleb Mazovetskiy
1eefe841b6
mainmenu: Focus on the exit item before exiting
...
This affects both the B and the Esc key
Fixes #603
6 years ago
Anders Jenbo
c26fa8fa3f
Remove threading from miniwin
6 years ago
Gleb Mazovetskiy
4a0e39c830
DiabloUI: Fix dialog rendering issues
...
1. The palette fade level wasn't set, resulting in black on Amiga.
2. Rendering cleared `pal_surface` instead of `GetOutputSurface()`,
resulting in mouse trails.
Also improves performance by only loading the background / palette once.
6 years ago
Gleb Mazovetskiy
3bb28a48c9
DiabloUI: Also pre-scale DrawTTF cache
6 years ago
Gleb Mazovetskiy
803217538a
DiabloUI: Fix software scaling along the X axis
6 years ago
Gleb Mazovetskiy
3463d7eaca
RetroFW: Remove IPU scaler check
...
RetroFW 2.0 brought IPU scaler support to all devices and we now require RetroFW 2.0+.
6 years ago
Gleb Mazovetskiy
1f129de0c3
DiabloUI: Scale surfaces at load/creation time
6 years ago
Gleb Mazovetskiy
bbe22b3be7
Fix credits when using software scaling
6 years ago
Gleb Mazovetskiy
58fde28a2a
Blit: ifdef all SDL1 stretching code
...
OutputRequiresScaling is always false on SDL2 so we don't need SDL2
compatibility there
6 years ago
Gleb Mazovetskiy
114a166a01
Blit: Fix scaled output handling
...
Fixes #594
6 years ago
Anders Jenbo
3ad7e21e71
Fix flashing menu transitions
...
Fixes #591
6 years ago
Gleb Mazovetskiy
041d540c6f
Fix credit lines pop-in
...
+1 should +2 (+1 for rounding-up and +1 for an extra line)
Fixes #585
6 years ago
Gleb Mazovetskiy
658b44f613
SVid: Only switch video mode if full-screen
...
borderless counts as full-screen here (this is what RetroFW reports when
fullscreen=0)
6 years ago
Gleb Mazovetskiy
ea32475ce9
SDL1: Avoid software-scaling SVid when possible
...
Set the video mode close to the SVid resolution while preserving aspect ratio.
Restore the video mode once the video has finished playing.
Also avoids allocating a tmp surface unless scaling.
6 years ago
Anders Jenbo
32d91cb446
Render menu directly to the output surface
...
Fixes fades not reset when switching to a new menu before fade had
ended.
Fixes incorrect start position for credits.
6 years ago
Anders Jenbo
9092eb43e5
Test fatal functions in appfat.cpp
6 years ago
Anders Jenbo
a5222a2684
Add unit tests and codecoverage
6 years ago
Anders Jenbo
3f3dae87e1
Fix MSVC build
6 years ago
Anders Jenbo
118e3668b4
Remove unused code
6 years ago
Anders Jenbo
edeca6574d
Replace tagRECT with SDL_Rect
6 years ago
Anders Jenbo
3ab9b7f2d3
Inline rand
6 years ago
qndel
cc6a2d4523
Apply MAX_PATH_LENGTH
6 years ago
Anders Jenbo
08aa6a860a
Move generic helpers out of miniwin
6 years ago
Anders Jenbo
4c1108c1da
Prevent space from selecting during text input
6 years ago
Anders Jenbo
67c58583d8
Implement fullscreen toggeling via alt+enter
6 years ago
Anders Jenbo
cc4d6b57d8
Remove unused miniwin IO
6 years ago
Anders Jenbo
baf2d14440
Remove unused parts of miniwin
6 years ago
Anders Jenbo
6e9987cc93
Rename dsound and it nolonger reflects DirectSound
6 years ago