Commit Graph

2020 Commits

Author SHA1 Message Date
Thierry Crozat
c421a25b8e GRAPHICS: Fix mismatching malloc/delete[] 2020-04-27 23:06:15 +01:00
Eugene Sandulenko
3199a5e107 GRAPHICS: Properly initialize struct members 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
c403182353 GRAPHICS: Initialize class variables in VectorRenderer 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
b9a6b99575 GRAPHICS: Added more sanity checks to BDF font loading 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
b90cf5db81 GRAPHICS: Added sanity check to BDF font scaler 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
dd21ddbe15 GRAPHICS: MACGUI: Plug potential memory leak 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
47cde2bae5 GRAPHICS: Fixe memory override (!) 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
1ed98269ff GRAPHICS: Use correct data types 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
2785bdd8c1 GRAPHICS: Fixed potential memory leak in BDF 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
06e4a85181 GRPAHICS: Enforced sanity check in 9-patch blitting 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
a968cb9b2b GRAPHICS: MACGUI: More const'ness 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
d9a11fdf76 GRAPHICS: MACGUI: Fix searching for next bigger font in MacFontManager 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
430915ce00 GRAPHICS: MACGUI: Const'ness 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
742ec2ccaf GRAPHICS: MACGUI: Simplified font management in EdtiableText 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
81c443c973 GRAPHICS: Add sanity check 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
8f5a432907 GRAPHICS: MACGUI: Fix crash when text is too narrow for a single chunk in MacText 2020-04-26 12:04:07 +02:00
Eugene Sandulenko
7fb7849656 GRAPHICS: MACGUI: Fixed MacText splitting and added more debug output 2020-04-26 11:51:39 +02:00
Eugene Sandulenko
9aa1d16e53 GRAPHICS: MACGUI: Fully reworked MacText::splitString() 2020-04-26 02:47:25 +02:00
Eugene Sandulenko
c5010fbc13 GRAPHICS: MACGUI: Install cursor timer only on active MacEditableText 2020-04-25 13:44:18 +02:00
Eugene Sandulenko
7a4d5f45e9 GRAPHICS: MACGUI: Renamed clashing methods 2020-04-25 13:44:18 +02:00
Eugene Sandulenko
7242a104ab GRAPHICS: MACGUI: Inherit enable/disable methods from MacWidget 2020-04-25 13:44:18 +02:00
Eugene Sandulenko
6e0cb60e4f GRAPHICS: MACGUI: More debug output 2020-04-25 01:45:21 +02:00
Eugene Sandulenko
e01893cfc7 GRAPHICS: MACGUI: Properly clean MacEditableText before rendering 2020-04-25 01:16:25 +02:00
Eugene Sandulenko
f382d0fd01 GRAPHICS: MACGUI: Clear cursor flag after redrawing 2020-04-25 00:57:22 +02:00
Eugene Sandulenko
dafacc4998 GRAPHICS: MACGUI: Inherit MacEditableText surface from MacWidget 2020-04-25 00:46:49 +02:00
Eugene Sandulenko
915d4615ba GRAPHICS: Added mask-driven transparency blitting to ManagedSurface 2020-04-24 00:51:24 +02:00
Eugene Sandulenko
37f2275f62 GRAPHICS: MACGUI: Draw over optional mask in macDrawPixel() 2020-04-23 22:06:20 +02:00
Eugene Sandulenko
d36016c9de GRAPHICS: MACGUI: Fix drawing empty maceditabletext 2020-04-22 01:09:01 +02:00
Eugene Sandulenko
f7a223c954 GRAPHICS: MACGUI: Added Manual Widnget draw mode 2020-04-22 01:03:11 +02:00
Eugene Sandulenko
2fb21ba90a GRAPHICS: MACGUI: Split drawing and blitting operations for widgets 2020-04-14 00:42:39 +02:00
Eugene Sandulenko
fb11113d00 GRAPHICS: MACGUI: Properly initialize font in MacEditableText 2020-04-14 00:40:35 +02:00
Eugene Sandulenko
06fc491663 GRAPHOCS: MACGUI: Renamed MacWindow::getSurface() to getWindowSurface() 2020-04-14 00:27:49 +02:00
Eugene Sandulenko
e7b2b87acf GRAPHICS: MACGUI: Cleanup MacEditableText of border logic 2020-04-13 15:48:01 +02:00
Eugene Sandulenko
a3967ca048 GRAPHICS: MACGUI: Implemented abstract method stubs for MacEditableText 2020-04-12 01:46:02 +02:00
Paul Gilbert
9214ecb1d7 GRAPHICS: Added a hasTransparentColor method to ManagedSurface 2020-04-09 18:00:54 -07:00
Paul Gilbert
914fad839d GRAPHICS: Add a getPalette method to ManagedSurface 2020-04-09 18:00:54 -07:00
Eugene Sandulenko
393362b616 GRAPHICS: MACGUI: Fix window removal 2020-04-08 01:17:28 +02:00
Eugene Sandulenko
b0fecf95c7 GRAPHICS: MACGUI: Fix infinite loop in event processing for MacWindow 2020-04-08 01:16:57 +02:00
Eugene Sandulenko
8ae73ce263 GRAPHICS: MACGUI: Add disableBorder() to MacWindow 2020-04-08 00:47:11 +02:00
Eugene Sandulenko
e5adfff853 GRAPHICS: MACGUI: Pass events to window children 2020-04-07 01:03:24 +02:00
Eugene Sandulenko
52137f6627 GRAPHICS: MACGUI: Turned MacWindow into MacWidget 2020-04-07 00:56:27 +02:00
Eugene Sandulenko
37485b9670 GRAPHICS: MACGUI: Implemented event dispatcher for MacWidget 2020-04-06 21:09:13 +02:00
stevenhoefel
cb224864fc GRAPHICS: MACGUI: Align text to bottom if font-size changes during chunk. 2020-04-05 13:27:03 +10:00
Eugene Sandulenko
2cbb611821 GRAPHICS: MACGUI: Fix double freeing of menus 2020-04-04 16:24:51 +02:00
Eugene Sandulenko
c529644d8c GRAPHICS: MACGUI: Plug memory leak 2020-04-02 18:06:35 +02:00
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
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
Cameron Cawley
ba035ac532 GRAPHICS: Add a function to vertically flip surfaces 2020-01-02 20:53:29 +02:00
Eugene Sandulenko
2d9b3b0b2d GRAPHICS: MACGUI: Initial code for MacEditableText 2020-01-02 18:23:33 +01:00
Cameron Cawley
ff3f7170f8 GRAPHICS: Fix loading NE cursors 2019-12-31 19:19:21 +01:00
Eugene Sandulenko
29a07afc58 GRAPHICS: MACGUI: Enhance sanity check for pattern references 2019-12-27 22:43:11 +01:00
Eugene Sandulenko
4e58ef479b GRAPHICS: Make ManagedSurface::clip() public 2019-12-27 13:39:56 +01:00
Eugene Sandulenko
4512845d58 GRAPHICS: MACGUI: Fix incorrect text dimension calculations 2019-12-26 18:45:30 +01:00