Commit Graph

177 Commits

Author SHA1 Message Date
Michael 07b9964a95 mainwnd.cpp: repaint before creating screenshot 2021-02-14 23:16:39 +01:00
Michael 6274981a6b tpassglobals.cpp: use getter for backbuffer
- disable client basepoint correction
2021-02-14 22:58:51 +01:00
Michael 858a856ee0 gamewnd.cpp: repaint before background capture and use backbuffer 2021-02-14 22:57:25 +01:00
Michael 5a45dca103 trespass/video.cpp: use backbuffer surface to render video
- clear backbuffer before rendering, flip buffers afterwards
2021-02-14 22:12:16 +01:00
Michael 606aef21d5 trespass/trespass.rc: add display configuration invalidity error message 2021-02-14 20:56:44 +01:00
Michael aa4207f77c trespass/resource.h: add display configuration invalidity error message 2021-02-14 20:55:57 +01:00
Michael 232892aeba trespass/main.cpp: add display configuration validity check 2021-02-14 20:55:12 +01:00
Michael 60b818cae2 video.h: adjust include directives for case sensitivity 2020-11-15 21:46:24 +01:00
Michael b9195ba7db video.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:23 +01:00
Michael 84af3890f6 uiwnd.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:23 +01:00
Michael f185bb4284 uidlgs.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:23 +01:00
Michael aa58ccfc12 tpassglobals.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:23 +01:00
Michael ab72370cda supportfn.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:22 +01:00
Michael 9267bd8fd7 saveload.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:22 +01:00
Michael ab076a37cc precomp.h: adjust include directives for case sensitivity 2020-11-15 21:46:22 +01:00
Michael 154ea4bae3 mainwnd.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:21 +01:00
Michael 3722de3dfd main.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:21 +01:00
Michael 119eb1cc52 keyremap.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:21 +01:00
Michael d852c3c922 gamewnd.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:20 +01:00
Michael 584694984d dlgrender.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:20 +01:00
Michael 52a00f2df4 DDDevice.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:20 +01:00
Michael 7a26363805 Cdib.cpp: adjust include directives for case sensitivity 2020-11-15 21:46:20 +01:00
Michael 9e392b99d2 trespass/video.cpp: replace backslashes in include directives with forward slashes 2020-11-15 00:22:09 +01:00
Michael 9e567bd65d uiwnd.cpp: replace backslashes in include directives with forward slashes 2020-11-15 00:21:45 +01:00
Michael addc983f07 uidlgs.cpp: replace backslashes in include directives with forward slashes 2020-11-15 00:21:15 +01:00
Michael 46173cd89a tpassglobals.cpp: replace backslashes in include directives with forward slashes 2020-11-15 00:20:54 +01:00
Michael 97853fb89a supportfn.cpp: replace backslashes in include directives with forward slashes 2020-11-15 00:20:31 +01:00
Michael 0e0b8aeabd saveload.cpp: replace backslashes in include directives with forward slashes 2020-11-15 00:20:07 +01:00
Michael 8fd2074e0e trespass/precomp.h: replace backslashes in include directives with forward slashes 2020-11-15 00:19:40 +01:00
Michael 79d1a70b1a mainwnd.cpp: replace backslashes in include directives with forward slashes 2020-11-15 00:18:55 +01:00
Michael 5b5e0b28f1 trespass/main.cpp: replace backslashes in include directives with forward slashes 2020-11-15 00:18:22 +01:00
Michael 49226f956a keyremap.cpp: replace backslashes in include directives with forward slashes 2020-11-15 00:17:50 +01:00
Michael db9c55ee42 gamewnd.cpp: replace backslashes in include directives with forward slashes 2020-11-15 00:17:06 +01:00
Michael c80ad9585e dlgrender.cpp: replace backslashes in include directives with forward slashes 2020-11-15 00:16:42 +01:00
Michael bc45fb1300 video.cpp: add missing cleanup before return statements 2020-09-06 21:13:20 +02:00
Michael 455a7db019 uiwnd.cpp: use Verify instead of Assert 2020-09-06 21:11:16 +02:00
Ian Brun c6296debf3
Merge pull request #137 from meekee7/select-first-level
Determine first level name by configuration and heuristics
2020-08-30 02:06:38 +02:00
Ian Brun 0c76d98a55
Merge pull request #133 from meekee7/windowed-mode-bugs
Resolve various issues with framed window mode
2020-08-29 23:37:40 +02:00
Ian Brun 82aa96f323
Merge pull request #136 from meekee7/cuiwnd-missing-detach
CUIWnd/CVideoWnd: missing detach
2020-08-29 22:33:28 +02:00
Ian Brun ded00ab029
Merge pull request #135 from meekee7/ctrls-resource-integration
Resolve missing controls text in the demo
2020-08-29 14:58:18 +02:00
Michael 6bd95badc9 uidlgs.cpp: add nullptr check 2020-08-29 13:33:44 +02:00
Michael ee67d70499 supportfn: add GetFirstLevelName function that checks the registry and then defaults to heuristics 2020-08-26 23:30:17 +02:00
Michael 7e7bc59864 uidlgs.cpp: use detection function for first level name 2020-08-26 23:28:07 +02:00
Michael 28aad0f090 uiwnd:cpp: detach CUIWnd from UI manager in destructor in case it was not detached before 2020-08-26 20:38:38 +02:00
Michael b2d0e393a6 uidlgs.cpp: detach video window after using it 2020-08-26 20:37:08 +02:00
Michael 34a81b81dc trespass.rc: add missing include for ctrls resource file 2020-08-25 22:04:51 +02:00
Michael ae773921de tpassglobals.cpp: convert window base point from client coordinates to screen coordinates when capturing background image 2020-08-24 22:03:57 +02:00
Michael 023882ba16 mainwnd.cpp: only set window properties when in exclusive fullscreen mode 2020-08-23 21:49:52 +02:00
Michael 40d8bd6707 supportfn.cpp: distinguish between client size and window size in SetupGameScreen
- fix calculation of client size
2020-08-23 21:46:43 +02:00
Michael b130301763 gamewnd.cpp: use window size instead of canvas size for cursor clipping in pause menu 2020-08-23 21:46:35 +02:00
Ian Brun 8958f598f6
Merge pull request #123 from meekee7/d3d-window
Support for D3D in windowed mode
2020-08-20 02:59:43 +02:00
Michael c509f860b3 trespass/main.cpp: replace GetWindowModeActual with GetWindowModeConfigured 2020-08-09 23:12:03 +02:00
Ian Brun 5d3767883c
Merge pull request #128 from meekee7/remove-gdi-dlgs
Remove unused GDI GUI code files
2020-08-07 22:55:36 +02:00
Ian Brun 9e00a29781
Merge pull request #124 from meekee7/use-cddsize
Deduplicate CDDSize and use it where applicable
2020-08-07 22:55:22 +02:00
Michael c405d60422 main.cpp: remove code for manipulating nvidia driver registry 2020-07-03 22:23:04 +02:00
Michael a904ca6536 dlgrender.cpp: remove code for manipulating nvidia driver registry 2020-07-03 22:22:12 +02:00
Michael 1c6de8d7c7 trespass: remove unused GDI GUI code files 2020-07-01 22:14:22 +02:00
Michael 4a5e4da2e2 uidlgs.cpp: use CDDSize 2020-06-28 16:54:29 +02:00
Michael 1c137ae80c trespass/video.cpp: use CDDSize 2020-06-28 16:51:47 +02:00
Michael 6cf6e1b34a trespass/main.cpp: do not set working directory to C:\ when InstallDir is undefined
- auto-generate settings when game is deemed as not installed
2020-06-07 23:00:18 +02:00
Michael 098b203523 gamewnd.cpp: handle ESC key in KEYUP state 2020-05-30 23:09:40 +02:00
Ian Brun 64d8cbe1d7
Merge pull request #115 from meekee7/display-mode-management
Configurable window mode
2020-05-28 00:33:03 +02:00
Michael 73437bd9b8 main.cpp: remove unintended semicolon 2020-05-26 00:12:37 +02:00
Michael fb4e37d03e trespass/main.cpp: add supported for bordered window mode 2020-05-25 23:58:16 +02:00
Michael 9dd223a14e supportfn.cpp: use configured screen size 2020-05-25 23:57:36 +02:00
Ian Brun de0bfe5042
Merge pull request #111 from meekee7/single-ddraw4
Drop DirectDraw2 layer
2020-05-23 19:10:59 +02:00
Michael 13e09e0bdf Merge branch 'launch-elevated' into choose-data-dir 2020-05-23 18:30:58 +02:00
Michael f3d2b61830 supportfn.cpp: remove DD2 interface, only use DD4 2020-05-23 18:11:27 +02:00
Michael c94fdacdc7 tpassglobals.cpp: remove DD2 interface, only use DD4 2020-05-23 18:10:50 +02:00
Michael 83fc2e5740 uidlgs.cpp: remove DD2 interface, only use DD4 2020-05-23 18:10:22 +02:00
Michael 90386cfeda trespass/video.cpp: remove DD2 interface, only use DD4 2020-05-23 18:09:24 +02:00
Michael 47963fd063 trespass/main.cpp: remove DD2 interface, only use DD4 2020-05-23 18:08:48 +02:00
Michael bb1c500e48 trespass/main.cpp: check working dir for write permissions and on failure, try to restart with elevated permissions 2020-05-22 21:10:12 +02:00
Michael 00dad479a9 trespass.rc: change text of invalid data drive message to include new reselection option 2020-05-21 20:04:44 +02:00
Michael 4d99ce6bf0 trespass/main.cpp: let player choose data directory of current one is invalid 2020-05-21 20:03:14 +02:00
Ian Brun 4ae7db7374
Merge pull request #104 from meekee7/fileloc-backslashes
Tolerate missing backslashes in config paths
2020-05-20 21:11:05 +02:00
Michael 57dfc9fe28 uiwnd.cpp: remove obsolete comment 2020-05-20 20:58:42 +02:00
Michael e34a13f4a5 tpassglobals.cpp: remove obsolete comment 2020-05-20 20:58:17 +02:00
Ian Brun bb7a38ba07
Merge pull request #105 from meekee7/main-pointer-format-specifier
trespass/main.cpp: use correct format specifier for pointer
2020-05-20 13:12:49 +02:00
Michael 7a106b401c trespass/main.cpp: use GetFileLoc for install directory query 2020-05-17 11:50:39 +02:00
Michael 406ccad0db tpassglobals.cpp: use GetFileLoc for data directory query 2020-05-17 11:49:56 +02:00
Michael 8c0a715935 uiwnd.cpp: use GetFileLoc for data/install directory query 2020-05-17 11:46:45 +02:00
Michael 6c09bc156a uidlgs.cpp: use GetFileLoc for data directory query 2020-05-17 11:21:16 +02:00
Michael 39f044dd90 mainwnd.cpp: use GetFileLoc for data directory query 2020-05-17 11:19:36 +02:00
Michael 0d67d86792 supportfm.cpp: ensure paths contain necessary backslashes 2020-05-17 00:25:35 +02:00
Michael 572213d89b gamewnd.cpp: add missing break statement 2020-05-16 21:36:49 +02:00
Michael a10935689f main.cpp: remove obsolete function VerifyProcessor() 2020-05-16 15:11:43 +02:00
Michael 089f22a231 trespass/main.cpp: remove obsolete processor detection from startup procedure 2020-05-10 12:16:45 +02:00
Michael e425f59490 trespass/main.cpp: use correct format specifier for pointer 2020-05-10 11:26:54 +02:00
Ian Brun 1b552ac906 Added FPS counter
Activated through 'FPS' cheat.
2020-05-08 07:00:04 +02:00
Ian Brun 4618173c2b
Merge pull request #91 from meekee7/tpassglobals-array-init
CTPassGlobals array initialization
2020-05-03 21:29:48 +02:00
Michael 5f29919c55 tpassglobals.cpp: restructure array initialization 2020-05-03 20:59:11 +02:00
Michael cf4d438158 trespass/main.cpp: consistent indendation in ValidateDiskSpace 2020-05-03 12:31:11 +02:00
Michael 7b1d4d19bf trespass/main.cpp: rewrite ValidateDiskSpace to avoid overflows and win32-specific functions 2020-05-03 12:23:38 +02:00
Michael fb9eb3563e uiwnd.cpp: clear screen buffer before drawing to avoid mouse trail effect 2020-04-30 23:24:57 +02:00
Michael 26b2fb413b video.cpp: : center FMV video for arbitrary window size 2020-04-29 22:00:41 +02:00
Michael 28860d1b79 uidlgs.cpp: ensure UI elements are centered 2020-04-29 21:59:56 +02:00
Michael cecf09dc7f supportfn: enable arbitrary window size
- add function to determine current client rect size
2020-04-29 21:59:16 +02:00
Michael 37bfea1d48 mainwnd.cpp: enable arbitrary window size 2020-04-29 21:58:02 +02:00
Michael 53a0d9cdd4 main.cpp: enable arbitrary window size 2020-04-29 21:57:27 +02:00