Commit Graph
3567 Commits
Author SHA1 Message Date
Eugene Sandulenko 8e215fad59 GRAPHICS: Fix memory leak 2020-03-30 11:48:02 +02:00
Eugene Sandulenko 251886124e GRAPHICS: MACGUI: Specify hotspot for custom cursor and fix cursor popping 2020-03-27 02:00:56 +01:00
Eugene Sandulenko 7cf998f9d5 GRAPHICS: Remove redundant (and illegal) includes 2020-03-25 09:49:58 +01:00
Paul Gilbert 4f1521f542 GRAPHICS: Fix setting ManagedSurface palette 2020-03-22 20:29:37 -07:00
Eugene Sandulenko 80f1132e22 GRAPHICS: FONTS: Fix Mac outline font generation 2020-03-22 18:08:30 +01:00
Eugene Sandulenko 4193097f3f GRAPHICS: MACGUI: Draw text styles in MacMenu 2020-03-22 17:59:19 +01:00
Eugene Sandulenko 930cf4df03 GRAPHICS: Generate Mac outline fonts 2020-03-22 17:41:21 +01:00
Eugene Sandulenko 39ad4d4e02 GRAPHICS: MACGUI: Request outline fonts generation 2020-03-22 17:40:59 +01:00
Eugene Sandulenko 6774d7aced GRAPHICS: MACGUI: Initial code for generating outlined fonts 2020-03-22 01:39:29 +01:00
Le Philousophe 8e156fe37d GRAPHICS: Fix compilation on old FreeType2 versions
Old FreeType2 had FT_Bitmap_New which got renamed later in FT_Bitmap_Init
2020-03-14 16:56:25 +01:00
Le Philousophe 3f7726ea66 GRAPHICS: Fix compilation for Amiga and PSP
Amiga failed because int isn't the same than int32
PSP failed because of an old FreeType version so try to take this
into account
2020-03-14 14:23:34 +01:00
Le Philousophe ee1aa81063 GRAPHICS: Mimic CreateFont Windows API
Implement a kind of font mapper which takes a list of font files, font
face name, size, slant and weight and finds the best matching face.
Fakes italic and bold if there it isn't available.
This commit adds support for TTC files which contains multiple faces
(used by CJK Windows fonts).
2020-03-14 12:19:21 +01:00
Eugene Sandulenko 7d81e1c14f GRAPHICS: MACGUI: Implemented addWidget() to BaseMacWindow class 2020-02-25 18:23:00 +01:00
Mathias Parnaudeau 2cad855184 TINYGL: Fix wrong access to the list of dirty rects
The function end() of a list does not return the last element but a fake element
after the last one, for the need of the iterator.
Trying to access to the data of the element returned by end() and that has no
such field, that caused a stack buffer overflow, reading uninitialized data.

Called function back() instead, to get the last element of the list.
2020-02-21 07:20:11 +01:00
Eugene Sandulenko 988daefade GRAPHICS: MACGUI: Parse slant in extra fonts too 2020-02-16 15:53:19 +02:00
Eugene Sandulenko 8df4d8a339 GRAPHICS: MACGUI: Proper processing of font slant names 2020-02-16 15:53:19 +02:00
Eugene Sandulenko 0f3b188205 GRAPHICS: MACGUI: Fix double Geneva font ids 2020-02-16 15:53:19 +02:00
Eugene Sandulenko 96912ee3f1 GRAPHICS: MACGUI: Moved Font::setName() method implementation out of the header 2020-02-10 15:05:46 +01:00
Eugene Sandulenko 80da619f47 GRAPHICS: MACGUI: Added possibility to specify custom cursor 2020-02-10 15:05:38 +01:00
Eugene Sandulenko 9b3ca6498e GRAPHICS: MACGUI: Adding style to menu items 2020-02-07 19:21:47 +01:00
Eugene Sandulenko 0fbc07449d GRAPHICS: MACGUI: Fix Mac cursors 2020-02-04 23:55:18 +01:00
Paul Gilbert db92f62b7a GRAPHICS: Add new overridable updateScreen method to Screen 2020-02-01 13:13:51 -08:00
Paul Gilbert 3a0c62e1e4 GRAPHICS: Make copying sources as const 2020-02-01 13:13:51 -08:00
Paul Gilbert 46e49e3ed3 GRAPHICS: Add transparent color field and palette to ManagedSurface 2020-02-01 13:13:51 -08:00
jepael 567c81905f GRAPHICS: MACGUI: Fix compiler warning 2020-02-01 00:22:47 +01:00
Eugene Sandulenko b0fba6d0f3 GRAPHICS: Added override keywords 2020-01-31 14:51:42 +01:00
Eugene Sandulenko 69343b2db8 GRAPHICS: MACGUI: Actually store palette when it is passed 2020-01-31 00:10:18 +01:00
Eugene Sandulenko cdd2d9336b GRAPHICS: MACGUI: Simplified color matching 2020-01-31 00:10:18 +01:00
Eugene Sandulenko 2ec72ea3dd GRAPHICS: MACGUI: Add helper method for color searching 2020-01-31 00:10:18 +01:00
Eugene Sandulenko 66455b6aa5 GRAPHICS: MACGUI: Added sanity check to splitString() 2020-01-14 18:48:42 +01:00
Filippos Karapetis bc908dd840 GRAPHICS: Revert unwanted changes to copyright comments 2020-01-12 02:14:48 +02:00
Harsh Bawari 6bf14cf547 GRIFFON: Fix slugginess in final boss and a crash when loading the Griffon.s03 map 2020-01-11 17:35:55 +02:00
Cameron Cawley a692905eb2 COMMON: Add a function to simplify loading Windows executables 2020-01-11 17:34:12 +02:00
Cameron Cawley 5cd6812b9d GRAPHICS: Unify loading Windows cursor groups 2020-01-11 17:34:12 +02:00
Cameron Cawley e49282577f GRAPHICS: Simplify loading Windows fonts 2020-01-11 17:34:12 +02:00
Cameron Cawley 948c555ea6 ALL: Create all instances of NEResources and PEResources using new instead of on the stack
Also adapted WinCursorGroup and MacMenu to reflect this.
2020-01-11 17:34:12 +02:00
Scott Percival 56aa8f3448 GRAPHICS: Fix arguments order in drawRect 2020-01-11 11:55:45 +08:00
Scott Percival b31d5ac2b9 DIRECTOR: Align fill patterns to global origin 2020-01-11 11:27:21 +08:00
Eugene Sandulenko da8bfeca5e GRAPHICS: FONTS: Improved visuals for generated bold fonts 2020-01-07 22:46:24 +01:00
Eugene Sandulenko 858f8791ec GRAPHICS: FONTS: Fix memory override 2020-01-07 22:09:59 +01:00
Eugene Sandulenko a98d3832d9 GRAPHICS: FONTS: Fix warnings 2020-01-07 22:00:23 +01:00
Eugene Sandulenko 8c8a710d80 GRAPHICS: MACGUI: Generate bold font substitutes in MacFontManager 2020-01-07 21:57:12 +01:00
Eugene Sandulenko fc00b78a48 GRAPHICS: FONTS: Implement generation of bold fonts 2020-01-07 21:57:12 +01:00
Eugene Sandulenko b5a95d4783 GRAPHICS: FONTS: Made scaling form MacFONT as a step 2020-01-07 21:57:12 +01:00
Eugene Sandulenko 90c305c904 GRAPHICS: FONTS: Use better algorithm for MacFONT scaling added debug output 2020-01-07 21:57:12 +01:00
Eugene Sandulenko f7970c30a4 GRAPHICS: FONTS: Fix BDF font scaling 2020-01-07 21:57:12 +01:00
Eugene Sandulenko bfd796fec2 GRAPHICS: MACGUI: Use regular slant as font substitutes 2020-01-07 21:57:12 +01:00
Eugene Sandulenko 5a06fcecdd GRAPHICS: MACGUI: Generate MacText surface for empty texts 2020-01-05 11:34:17 +01:00
Eugene Sandulenko bd4f0aa570 GRAPHICS: MACGUI: Fix text height for one line texts 2020-01-05 10:59:11 +01:00
Eugene Sandulenko d9f6a0cf4d GRAPHICS: MACGUI: Further work on MacEditableText 2020-01-03 00:50:24 +01:00