Anders Jenbo
b2a1bdfdc3
Apply fade out to all colors
...
Fixes #795
6 years ago
Robin Eklind
21e2d2f9de
Resolve CreatePalette name conflict
...
Fixes #641 .
6 years ago
Anders Jenbo
bd6eebedb1
Drop storm_dx.cpp
6 years ago
Anders Jenbo
20621a0642
add all.h and use in place of diablo.h ( #2005 )
...
Now diablo.h is treated in the same way as all other header files of
Source, as it only contains the declarations of global variables and
functions of diablo.cpp.
Besides consistency, this also enables mods to include diablo.h just
like any other header file without having to include every header file
(and without having to include C++ specific aspects of the now all.h).
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
a9e955578a
Correctly apply the red palette when taking screenshots
6 years ago
Anders Jenbo
edeca6574d
Replace tagRECT with SDL_Rect
6 years ago
Anders Jenbo
913de17a56
Use SDL_Color nativly instead of converting betwen it and PALETTEENTRY
6 years ago
qndel
36d22334ee
apply border enums
6 years ago
Anders Jenbo
cee06d07a7
Correct spelling of color
6 years ago
Anders Jenbo
0c90ad0527
Set bool values TRUE/FALSE
6 years ago
Anders Jenbo
bcd25c8b69
Fix buid for Clang and MSVC from last merge (SetFadeLevel)
6 years ago
Anders Jenbo
7092f54412
Fix buid for Clang and MSVC from last merge
6 years ago
Anders Jenbo
c3072c9373
Correct fade delay
...
(256 / 8) × (1000 / 60) / 256 = ms per level (8 levels per frame at
60hz, 256 levels)
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
aa23194591
Calculate fade based on frame level time
...
This makes the frame lenght FPS independant and fixes #459
6 years ago
galaxyhaxz
5f941e862e
Fix function order [palette.cpp]
6 years ago
Anders Jenbo
320605d7ec
Save gamma on change
6 years ago
qndel
3920bf2678
apply gamma change to HUD on 640x480
6 years ago
Anders Jenbo
0e578ffb11
Enable assertions
6 years ago
Robin Eklind
e155a9423e
rename random to random_ to avoid collision with random in stdlib.h
...
Fixes #1813 .
6 years ago
Anders Jenbo
73a7a1ae6d
Remove unimplemented functions that aren't needed with SDL
7 years ago
Anders Jenbo
ba9288c6cf
Unify error dialogs, for looks and portability
...
- Use UiOkDialog() to display all error messages
- Add SDL simple message, and console fallbacks to UiOkDialog()
- Boot graphics early on to facilitate most error messages with build in
gui
- Some more miniwin clean ups
7 years ago
Anders Jenbo
88813c4042
Strip some now unused parts of miniwin and windows api
7 years ago
Anders Jenbo
9daea5be8a
Back port clean ups from Hellfire
7 years ago
Anders Jenbo
288f31a1f1
Clean up unused code
7 years ago
Anders Jenbo
1ebf8fe27d
Remove unused fallbacks
7 years ago
Anders Jenbo
68d51e7d27
Implementing Spawned Shareware version
7 years ago
Alex Yatskov
f1da6e6a38
Fix invalid file and line constants ( #222 )
...
* Fix invalid file and line constants
* add macros
* remove ASSERT_FAIL macro
7 years ago
Anders Jenbo
082e610394
Clean up palette.cpp
7 years ago
Anders Jenbo
897c090338
Merge dx.cpp
7 years ago
galaxyhaxz
792fc65bea
Add support for 32-bit colors ( #1018 )
7 years ago
Anders Jenbo
28dca419c5
Workaround for flickering mouse in caves
...
Fixes #7
7 years ago
galaxyhaxz
540892ff9d
Preliminary support for fixed header files
7 years ago
Robin Eklind
5f45d06e38
Cleanup palette_update_quest_palette, already bin exact
7 years ago
Robin Eklind
e614b566c2
Cleanup PaletteFadeIn and PaletteFadeOut, already bin exact
7 years ago
Robin Eklind
634cf9adfe
Cleanup palette_update, already bin exact
7 years ago
Robin Eklind
e1a0354a3b
Cleanup palette_init, already bin exact
7 years ago
Robin Eklind
2877511e96
palette_set_color_cycling bin exact
...
Fixes #271 .
7 years ago
Robin Eklind
ba6a031aa3
LoadGamma bin exact
7 years ago
Anders Jenbo
e1002b0dff
Clean up SetFadeLevel
7 years ago
Anders Jenbo
56e839e2f8
Clean up LoadSysPal
7 years ago
Anders Jenbo
b253648c5a
Clean up diablo_color_cyc_logic and palette_get_colour_cycling ( #868 )
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
Anders Jenbo
d2174e3454
Apply code style
7 years ago
galaxyhaxz
68153d2af2
Cleanup ApplyGamma/LoadPal
7 years ago
galaxyhaxz
5ddb46fabe
More Scrollrt cleanups
7 years ago
Xadhoom
5283a9ffd1
Put everything into namespace dvl
7 years ago
Max Desiatov
269aa345bd
Fix downstream 64-bit builds
7 years ago
Xadhoom
fa90e6720a
Revert random_ to random and remove extern "C" linkage
7 years ago