Anders Jenbo
1d87872d25
Re introduce a safe margin on the bottom boarder
...
macOS 10.13 debug crashes with out this, so oviously stuff is still being rendered down here.
7 years ago
Anders Jenbo
048429b4cd
Apply more constants
7 years ago
Anders Jenbo
8976e4fd39
Check if panels conver the screen before affecting the viewport
7 years ago
Anders Jenbo
71adfe509e
Document more attributes
7 years ago
Anders Jenbo
92ab05ea13
Decompose more magic numbers
7 years ago
Anders Jenbo
f8c16a1dcb
Only use safe blitting and set gpBufEnd to the correct relative values
...
This again allows us to only selectivly render the UI panel
This also eliminates the need for the BORDER_BOTTOM 10k memory saved!
7 years ago
Anders Jenbo
a8e4db538f
Display SDL error messages in UI dialog
...
This will also end the application in most cases
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
1a2f2b5f52
Implement CelGetFrameClipped from the Mac 9 port
7 years ago
Anders Jenbo
64824cab2b
Implement CelGetFrameStart
7 years ago
Anders Jenbo
ce6fc51b50
Implement CelGetFrame (CEL decoder helper)
...
This implements the first of the inlined CEL decoder helper functions
that are still visable in the Mac port code.
Functions are still bin exact
7 years ago
Anders Jenbo
c1fb75d738
Remove check for Windows platform
7 years ago
Anders Jenbo
9daea5be8a
Back port clean ups from Hellfire
7 years ago
Anders Jenbo
27e3696df4
Use consts for drawing ui
7 years ago
Anders Jenbo
1f715f86f6
Clean up
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
9d87475af5
Fix gmenu_enable
7 years ago
Anders Jenbo
6ba57a2d10
Remove the last bit of garbage
7 years ago
Anders Jenbo
3bc8ba66b0
Use defines for more screen geometry values
7 years ago
Anders Jenbo
457b9186da
Clean up gmenu_draw_menu_item
7 years ago
Sergey Semushin
813d6693fb
Add macro for aligning by 1 and apply it to 3 functions to make them bin exact.
7 years ago
Duarte Alvim
6a4142fb08
Add gold constants
7 years ago
Anders Jenbo
19e4c20841
Remove unused garbage
7 years ago
Anders Jenbo
cd02bc176a
Remove a bit of garbage
7 years ago
Anders Jenbo
11b6b1f860
Remove more garbage
7 years ago
Manuel K
896933f55e
Replace magic number 352 with VIEWPORT_HEIGHT ( #1232 )
7 years ago
Manuel K
11ae82a30b
Replace ROW_PITCH with BUFFER_WIDTH
7 years ago
Anders Jenbo
3c0dc5f164
Remove more garbage
7 years ago
Anders Jenbo
473ff318c4
Set needed CMake values for FreeBSD
7 years ago
galaxyhaxz
6e37114459
Add defs for border pixels
7 years ago
Anders Jenbo
1fd057a368
Clean up interfac.cpp
7 years ago
galaxyhaxz
792fc65bea
Add support for 32-bit colors ( #1018 )
7 years ago
galaxyhaxz
3446e3c9a9
Add defs for screen resolution
7 years ago
galaxyhaxz
26e9dcb6af
Add enum
7 years ago
galaxyhaxz
5238265702
Implement assert support ( #791 )
7 years ago
galaxyhaxz
52aa7db9ac
Create macro -> mem_free_dbg
7 years ago
Anders Jenbo
fe1af7814d
Remove some IDA garbage
7 years ago
galaxyhaxz
befd52c003
Fix type for 'gpBuffer' ( #672 )
7 years ago
Anders Jenbo
458969de19
Only expose SEG_ALLOCATE to MSVC
...
Other compilers use `__attribute__((constructor))`
7 years ago
Anders Jenbo
2feae2143f
Update defs.h
7 years ago
Anders Jenbo
69092e11c1
Fix msvc builds
7 years ago
Xadhoom
3dd6cf1671
First try, merge compiles, but immediate crash
7 years ago
Anders Jenbo
d4d5683d5b
Fix compiling on 64bit (only menu works)
7 years ago
Anders Jenbo
54247a076c
C init ( #549 )
...
* Make initializers C compatible
* Compile more files as C
dthread.cpp dx.cpp init logging.cpp fault.cpp msgcmd.cpp nthread.cpp
* Update defs.h
7 years ago
Anders Jenbo
2c8661f969
Remove more IDA_GARBAGE
...
SHIWORD compiles to the same as >> 16
7 years ago
Anders Jenbo
ca64011eb9
Replace __ROR4__ stdlib, make _ROR2__ C frindly ( #540 )
...
* Use stdlib _rotr instead of inline asm
* Compile control.cpp as C
This also makes qmemcpy avalible to the C compiler
7 years ago
Anders Jenbo
6d5c9619a7
Clean up town_draw_town_all ( #544 )
...
* Clean up town_draw_town_all
* Clean up town_draw_e_flag
* Clean up InitPlayerLoc
* Fix VS 2015 builds
* Clean up gendung_get_dpiece_num_from_coord
* Clean up town_draw_clipped_e_flag
* Clean up town_draw_clipped_e_flag_2
* Remove HIDWORD() as it is now unused
7 years ago
Anders Jenbo
77849aea72
Remove unused init ( #533 )
7 years ago
Anders Jenbo
efec32bcd5
Compile files as C ( #527 )
...
* Compile files as C
* Provide fallback for qmemcpy
Enable C compilation for:
Source/gendung.cpp
Source/inv.cpp
Source/minitext.cpp
Source/pack.cpp
7 years ago