Gleb Mazovetskiy
cb9da2cadc
🎉 SDL1: An option to render directly to video mem
...
Now that we no longer have a buffer border, we can render directly to
the video memory if the output surface is 8-bit and double buffering is
enabled.
Also adds a flag to force this even when double buffering is disabled,
because some systems emulate 8-bit mode with something else, so the
output is always buffered.
This required a tweak to the cursor to make sure that we clear it after
`SDL_Flip`.
5 years ago
Gleb Mazovetskiy
1181cc68ac
🎉 Remove buffer padding
...
The padding is no longer needed
5 years ago
staphen
eaa5188776
Remove call to gspWaitForVBlank().
5 years ago
Gleb Mazovetskiy
59dd42692f
🚚 Move render.cpp to engine/render/dun_render.cpp
5 years ago
Jmgr
1b7e0d2cb3
Migrate existing log entries
5 years ago
Anders Jenbo
cc164985a3
🎨 Correct type checks in src sub-folder
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
5 years ago
Gleb Mazovetskiy
64f5e374ff
RenderPresent: Remove the !SDL_MUSTLOCK assert
...
Allows using a hardware surface
5 years ago
Gleb Mazovetskiy
91f8267db9
🧹 SDL1.2: Remove unimplemented SDL_*Window backports
...
Guard around SDL version at call site instead.
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
6e1a106a38
🚚 Move header we implement into the project
5 years ago
Anders Jenbo
52401c9677
💚 Correct include headers
5 years ago
Anders Jenbo
dc84643fe6
🚚 Move dx.cpp and sound.cpp back in to Source now that the name space is clean
5 years ago
Anders Jenbo
433edc63ea
♻️ Consistently use pragma once to guard the headers
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
a2656637e4
🎨 Format source
5 years ago
Juliano Leal Goncalves
800dbce066
♻️ Move options-related structs to new 'options.h' file
5 years ago
Gleb Mazovetskiy
70d1d633bd
Get rid of SCREEN_X / SCREEN_Y
...
GlobalOutputBuffer() now returns a clipped subregion
5 years ago
Gleb Mazovetskiy
cd59a1c323
Completely replace gpBuffer with CelOutputBuffer
...
`CelOutputBuffer` now contains an `SDL_Surface` and an `SDL_Rect`.
We now have access to SDL surface manipulation functions.
`gpBuffer` and `gpBufEnd` are completely gone 🧹
This results in some FPS loss (250 -> 195) recovered in a subsequent
commit.
5 years ago
Trihedraf
a4c34112af
🚩 Add ini toggle for FPS Limit. Enabled by default. ( #1165 )
5 years ago
Juliano Leal Goncalves
103cde53ff
♻️ Make options struct hierarchical
5 years ago
Anders Jenbo
d0248caf8d
💚 Fix SDL1 builds
5 years ago
Anders Jenbo
b8e38ec560
Correct typo
5 years ago
Gleb Mazovetskiy
21bb021641
Clean up gpBufEnd initialization
...
Initialization of `gpBufEnd` was done in a convoluted way
that only happened to work.
Cleans up initialization and moves it to dx.cpp.
5 years ago
Anders Jenbo
39999791b3
Revamp ini options and sync in multiplayer
...
[NetMsg]
F12=Now you DIE!
F11=Here's something for you.
F10=Follow me.
F9=I need help! Come Here!
[Game]
Speed=50
Fast Walk=1
Grab Input=0
Theo Quest=0
Cow Quest=0
[Audio]
Sound Volume=0
Music Volume=0
Walking Sound=1
[Graphics]
Fullscreen=1
Fit to Screen=1
Scaling Quality=2
Integer Scaling=0
Vertical Sync=1
Blended Transparency=1
Gamma Correction=100
Color Cycling=1
[Diablo]
Intro=0
[Hellfire]
Intro=0
SItem=
[Phone Book]
Entry1=127.0.0.1
[Network]
Bind Address=0.0.0.0
5 years ago
Anders Jenbo
36a196389b
Fix remaning basic compiler errors and warnings
5 years ago
Ivan Epifanov
85be8ed77e
[vita] Speed up. Add option to disable back touch
5 years ago
MrHuu
7e35651b2f
[3DS] CMake re-visited
...
Reflect latest devkitpro libctru / 3ds-sdl-1.2 changes
- Controls now use SDL_JOYSTICK with circlepad enabled
- Shutdown / suspend / sleep are functional
5 years ago
MrHuu
1fa8b6f4e4
[3DS] Initial port
5 years ago
Juliano Leal Goncalves
8d896d54f7
Softcode VSYNC setting. Enabled by default. ( #783 )
6 years ago
qndel
f66339a9ac
clean unused variables
6 years ago
Anders Jenbo
69ad34f58f
Consistently use NULL instead of nullptr
...
While nullptr does have extra checking, most of the code uses NULL and
nullptr makes it harder to port the code to some targets like the
original XBox
6 years ago
Manuel Alfayate Corchete
03662be548
Remove atexit() calls and implement a diablo_deinit() function instea… ( #694 )
...
* Remove atexit() calls and implement a diablo_deinit() function instead that cleans up every subsystem if it has been init before.
6 years ago
Robin Eklind
21e2d2f9de
Resolve CreatePalette name conflict
...
Fixes #641 .
6 years ago
Gleb Mazovetskiy
803217538a
DiabloUI: Fix software scaling along the X axis
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
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
edeca6574d
Replace tagRECT with SDL_Rect
6 years ago
Anders Jenbo
08aa6a860a
Move generic helpers out of miniwin
6 years ago
Anders Jenbo
67c58583d8
Implement fullscreen toggeling via alt+enter
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
c3f283429b
Fix high CPU load when game is minimized
6 years ago
Anders Jenbo
e577f9bdc7
Remove more old save game format code
...
Multiplayer save games from before 1.08 where using the system name as
the password, so they would need to be converted on the original machine
by 1.08-1.09b before they can be transfered to another system.
6 years ago
Anders Jenbo
a261e8ad65
Better frame delay pressision
...
- Most refresh rates aliging poorly with integer ms
- Adaptive frame limit for low spec devices
6 years ago
Anders Jenbo
0127478673
Improve frame delay for non-v-synced rendering
...
Thanks to @glebm for pointing out the issue, hopfuly this is a better
solution :)
6 years ago
Anders Jenbo
dffc89e41c
Limit FPS when upscaling is disabled
6 years ago