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
Anders Jenbo
913de17a56
Use SDL_Color nativly instead of converting betwen it and PALETTEENTRY
6 years ago
Gleb Mazovetskiy
f3ad0c37e1
dx_create_back_buffer: Minor improvement for SDL2
...
Previously, we were copying the colors onto the surface's own palette
that was then immediately replaced by `palette`.
6 years ago
Anders Jenbo
5ff5b4893c
Fix loading alignment
6 years ago
Gleb Mazovetskiy
309693b9ff
OpenDingux: GKD350h support
...
Start and Select are swapped in this version because Start + D-Pad controls backlight on the GKD350h.
There is nothing to map mouse emulation to in this version because of this but it isn't necessary to play the game.
This version looks uglier than on RG350 because it uses software scaling beacuse the IPU on the GKD350h doesn't work.
6 years ago
Gleb Mazovetskiy
5b2481a2b4
Controls: No virtual mouse when automap is active
6 years ago
Gleb Mazovetskiy
39d78228fb
Move modifier hints to viewport corners
6 years ago
Gleb Mazovetskiy
ce5c1007a2
Controller improvements: START modifier and hints
...
1. Makes START a modifier key.
2. Main modifier actions are now displayed as hints while the modifier is pressed.
3. Mouse simulation now available on all controllers:
SELECT + D-Pad to move mouse
SELECT + Left/Right should button to click
START + | Action
---------- | ------
SELECT | Menu
UP | Menu
DOWN | Map
LEFT | Character info
RIGHT | Inventory
B (Bottom) | Spell book
Y (Left) | Quest log
This makes all actions available on controllers without sticks and ZL/ZR.
6 years ago
Gleb Mazovetskiy
fd6de736f9
Read/WriteFile: Use memcpy instead of copy
...
copy compiles to memmove but we know the ranges do not overlap here,
because memfile buffer is not exposed outside this file
6 years ago
Gleb Mazovetskiy
e1b0712f74
CloseHandle: Avoid double lookup of file
6 years ago
Gleb Mazovetskiy
77914a029f
ShowOutOfDiskError: Use constant C-string
6 years ago
Gleb Mazovetskiy
8e5e918441
Change misc_io::files from set to unordered_set
...
Order is not a concern and unordered_set is faster
6 years ago
Anders Jenbo
7f699dbad2
Remove more legacy savegame code
...
This code was only active in versions prior to 1.08
6 years ago
Anders Jenbo
8d0c600e27
Fix compiler warning
6 years ago
Anders Jenbo
9836d6038c
Use SDL_Log instead of printf
6 years ago
Anders Jenbo
534ed2d3ff
Make shift+0-9 behave as on US keyboards
...
Fixes #532
6 years ago
Anders Jenbo
fd1d81c87f
Force initialization of controller on Switch
6 years ago
Anders Jenbo
71d8a0071c
Fix Windows build
6 years ago
Anders Jenbo
f7541fbeb9
Ask before overwriting hero
6 years ago