Commit Graph

28 Commits

Author SHA1 Message Date
7791380a9a refactor dialogue word button on/off colors to constants 2024-09-03 00:08:26 -04:00
13a62445a3 Fix some compile warnings 2024-08-24 20:14:40 -04:00
d81e613ea1 more DRY overload function implementation 2024-08-22 09:47:06 -04:00
c08a10867c cTextMsg pre-calculate layout 2024-08-22 09:47:06 -04:00
5f97d8bfb3 refactor win_draw_string() so line wrapping can be cached 2024-08-22 09:47:06 -04:00
f400a5b7de Address a bunch of dead store issues found by the static analyzer.
Pretty much all of these fall into one of two categories:

* Variables that are obviously unneeded and in many cases completely unused – probably remnants of old code that was rewritten. These ones were deleted.

* Variables that look like they should be used but aren't. These ones have been suppressed, with a TODO message added as a reminder to investigate them in more detail later.
2024-08-10 12:22:05 -04:00
8a2cfbae7e Fix some issues rendering animated terrains in dialogs, and avoid a crash if a graphics sheet cannot be found 2023-01-30 00:07:25 -05:00
1654ac69aa Squash a too-verbose log message 2023-01-21 16:42:54 -05:00
8872f1aa25 Stop storing players as bare pointers - use unique_ptr instead
Should fix some potential memory leaks that were caught by static analysis
2023-01-12 21:26:08 -05:00
Morel Berenger
4cd2bfd8d1 render_image.cpp: improve gl error messages by adding filename 2023-01-06 20:49:08 -05:00
5b2561d034 Disable header maps in Xcode 12 2022-07-12 20:35:41 -04:00
a69d92d8dc Fix tiled textures not showing up on newer OSX 2022-07-05 09:52:24 -04:00
259e4ac125 Adjust the hilited string rendering to be less reliant on mysterious magic numbers
It still adds a mysterious offset to all text, but the returned rectns are now perfectly aligned to redraw the hilited string.
2020-12-19 17:32:46 -05:00
b8492a29b0 Extract shopping/talking colours to global constants
Adapted from patch by @clort81
2020-02-07 20:39:13 -05:00
805b35ec90 Fix Classify Custom Graphics wrongly claiming you don't have any 2020-02-05 23:48:36 -05:00
e6a6b41ec0 Fix incorrect clipping rect in scaled UI 2020-02-02 19:14:01 -05:00
3e686cb908 Tweak text colours to be less blindingly bright and closer to the original Mac BoE 2020-02-01 19:55:30 -05:00
d530abe00b Make use of the new resource manager's purgeable flag 2020-01-26 16:14:39 -05:00
14e2597108 Expose the shared pointer instead of the raw pointer in the resource manager and rewrite the custom sheets list to use a vector instead of manual memory management
In particular, this should fix a segmentation fault in the sound system caused by the resource manager pulling a resource that's in use.
2020-01-26 15:10:57 -05:00
542c037342 Integrate a new resource manager which should have better performance 2020-01-26 11:53:19 -05:00
d1838991a8 This is an attempt to fix the Travis build errors due to mismatched virtual override signatures 2018-03-03 18:44:27 -05:00
e77d5194a3 Add a version directive to the shaders 2018-02-19 02:15:28 -05:00
9127e4a03f Enable building tests in MSVC 2013 2017-09-16 12:46:31 -04:00
9c69e006d8 Refactor rendering to use an SFML view for placing the main UI within the overall interface 2017-09-04 14:36:55 -04:00
9d86053817 Fix up MSVC project file for the major reorganization 2017-08-30 00:09:01 -04:00
7e7f3d2b81 Merge mac into windows 2017-08-27 23:37:37 -04:00
c2ce2a2cd1 Split up the graphtool files 2017-04-14 15:43:07 -04:00
82abdab695 Major code reorganization
This commit only updates the XCode project for the changes.
A later commit each will update it for scons and MSVC.

A few actual changes are mixed in:
- Add a prefix header for a handful of common definitions
- Moved current_cursor into the Cursor class as a static member
- Removed the make_cursor_sword and make_cursor_watch functions
- Include tests in the All target
- Remove redundant -l flags for Common and Common-Party (since they're included in the Link phases anyway)
2017-04-14 00:24:29 -04:00