Eugene Sandulenko
8d878cb034
DIRECTOR: Fix regression from 48740a2ad1
...
The color values went inverted, but in several places they left
untouched.
In general, it is not a good idea to have this hardcoded, but at least
now we have this addressed.
2023-02-10 00:51:33 +01:00
Cameron Cawley
28d7b361ea
COMMON: Move more file format code into common/formats
2022-12-11 22:33:23 +01:00
Eugene Sandulenko
fb7095f5a4
COMMON: Move all compression-related files to a separate directory
2022-12-01 11:53:02 +01:00
elasota
261ced8ca4
GRAPHICS: Fix getRowCol returning uninitialized variable nsx if there were no chunks for the chosen line.
2022-11-28 18:43:55 +01:00
Hubert Maier
a3ec89bf51
JANITORIAL: GRAPHICS: Correct Spelling Mistake
...
begining -> beginning
2022-11-15 22:52:43 +02:00
sluicebox
2775987cba
MACGUI: Expose font families in MacFontManager
...
MacFontManager didn't have a mechanism to report which fonts it loaded
from an external resource. It also requires that any fonts that aren't
built-in be explicitly registered by name by the client before they can
be used. This combination meant that a client couldn't load fonts from
an external file and use them by their properties (id / size / style).
SCI contains Mac fonts in its executable along with a table that maps
each SCI font id to a Mac font id and size. The font name isn't a part
of this since the Classic Mac Toolbox API took id / size / style as
input when drawing text.
Now MacFontManager exposes the font families it has loaded along with
their names. This allows a client to see which fonts were loaded,
register them by name, and proceed to use them with the existing API.
2022-11-06 23:05:20 -08:00
Eugene Sandulenko
3659fa9d70
GRAPHICS: MACGUI: Fixed returned palette size in WM
2022-11-03 20:36:59 +01:00
Eugene Sandulenko
62f067a72c
MACGUI: Fix incorrect logical operator usage. PVS-Studio V564
2022-10-27 23:27:44 +02:00
Hubert Maier
072a3b2958
GRAPHICS: Correct spelling mistake
...
begining -> beginning
2022-10-27 15:56:06 +02:00
Scott Percival
095ae06405
COMMON: Refactor MacResManager::load* methods to accept a pointer
...
Previously the methods would pass by reference, then convert to a
pointer on success and take ownership. This isn't ideal, as a
reference suggests no transferral of ownership, and doesn't suggest
it needs to be a heap resource allocated by new.
2022-09-25 10:35:03 +02:00
Roland van Laar
034a5efe98
DIRECTOR: Fix memory leak in registered FONDs
...
References to FOND resource streams are stored in an array.
Font streams were registered by their family name in a hashmap.
When a second font with the same name was encoutered it would replace
the pointer to the previous font.
The only use case for the hashmap was to register the stream to be able
to later close them.
2022-09-24 16:37:27 +02:00
Roland van Laar
82142000c6
GRAPHICS: MACGUI: leave _desktopBmp as a nullptr
...
Make sure _desktopBmp can be checked to be a nullptr.
2022-09-20 23:19:08 +02:00
Roland van Laar
c537cd9ca6
GRAPHICS: MACGUI: Fix memory leak
...
Clean up _desktopBmp before it's reallocated again.
2022-09-20 23:12:09 +02:00
Le Philousophe
8ec9835358
GRAPHICS: Initialize _japaneseFontsLoaded before it's used
2022-09-18 16:15:56 +02:00
Le Philousophe
5774811be8
GRAPHICS: Don't dereference a null pointer
2022-09-18 16:15:56 +02:00
Le Philousophe
e020710d5d
GRAPHICS: Free WinFont when erroring out
2022-09-18 16:15:56 +02:00
Eugene Sandulenko
70721f9a59
GRAPHICS: MACGUI: Sync methods with their prototypes
2022-09-09 17:43:35 +02:00
Pragyansh Chaturvedi
842fe20c5e
DIRECTOR: Modify decomposeColor to fix missing text in buttons in 32bpp mode
2022-09-09 02:21:47 +02:00
Avijeet
26c3c4f160
MACVENTURE: Invert exit window's color when active
2022-09-04 20:30:02 +02:00
Eugene Sandulenko
b697ad6cfa
GRAPHICS: MACGUI: Improved debug output
2022-08-22 17:39:47 +02:00
Le Philousophe
12df7f3767
GRAPHICS: Fix uint vs uint32 discrepancies
2022-08-22 13:09:45 +02:00
Eugene Sandulenko
ba4a260e9e
GRAPHICS: MACGUI: Use uint32 for color information
2022-08-20 22:12:29 +02:00
Eugene Sandulenko
4bce66edbb
GRAPHICS: MACGUI: Fix warnings
2022-08-05 20:20:53 +02:00
Avijeet
a21afb29b1
GRAPHICS: MACGUI: Reduce duplicated code in MacTect::render
2022-08-05 20:17:23 +02:00
Avijeet
ff1f5712e3
PINK: Fix reversed hebrew text
2022-08-05 20:17:23 +02:00
Avijeet
4f3dc247e4
GRAPHICS: MACGUI: Handle EVENT_QUIT properly in MacDialog
2022-08-05 20:15:03 +02:00
Avijeet
1ad34487ee
GRAPHICS: MACGUI: Remove unnecessary headers from macdialog.h
2022-08-05 20:15:03 +02:00
Avijeet
033bc00cd1
GRAPHICS: MACGUI: Poll events in MacDialog itself
2022-08-05 20:15:03 +02:00
Avijeet
1b955dc90c
GRAPHICS: MACGUI: Refactor MacDialog to not use WAGE functions
2022-08-05 20:15:03 +02:00
Avijeet
2c905885c4
GRAPHICS: MACGUI: Fix text alignment for MacDialog
2022-08-05 20:15:03 +02:00
Avijeet
c4ede93e79
WAGE: Add about screen
2022-08-05 20:15:03 +02:00
Avijeet
27f48f6d41
GRAPHICS: MACGUI: Use MacText in MacDialog
2022-08-05 20:15:03 +02:00
Avijeet
ac847e4117
GRAPHICS: MACGUI: Refactor wage/dialog.cpp to macgui/macdialog.cpp
2022-08-05 20:15:03 +02:00
Avijeet
dc52ccaec9
GRAPHICS: MACGUI: Enable blinking cursor on input line
2022-08-05 20:15:03 +02:00
Avijeet
c0cf312748
GRAPHICS: MACGUI: Account for characters having 1 white space around them
2022-08-05 20:15:03 +02:00
Avijeet
efea402993
GRAPHICS: MACGUI: Don't consider right and bottom edges while drawing round rect
2022-08-05 20:15:03 +02:00
Avijeet
94efaeb278
GRAPHICS: MACGUI: Draw SubMenu over copy of game screen
2022-08-05 20:15:03 +02:00
Avijeet
02194c87af
GRAPHICS: MACGUI: Make MacText editable when MacTextWindow is editable
2022-08-05 20:15:03 +02:00
Avijeet
d933b504ed
GRAPHICS: MACGUI: Change MacText's dimensions when MacTextWindow's dimensions are changed
2022-08-05 20:15:03 +02:00
Avijeet
007cc0a5c0
GRAPHICS: MACGUI: Scroll MacText whenever MacTextWindow is scrolled
2022-08-05 20:15:03 +02:00
Eugene Sandulenko
f67d9fb70c
GRAPHICS: MACGUI: Fix regression in WM mode setting
2022-08-01 18:41:07 +02:00
Avijeet
77810fed70
GRAPHICS: MACGUI: Limit submenu width to 200
2022-07-31 18:33:22 +02:00
Avijeet
154bcf414a
GRAPHICS: MACGUI: Enable all menus in win95 mode
2022-07-31 18:33:22 +02:00
Avijeet
5e5dd3f399
GRAPHICS: MACGUI: Fix signed/unsigned mismatch
2022-07-31 18:33:22 +02:00
Avijeet
c031566369
GRAPHICS: MACGUI: Add removeMenuItem
2022-07-31 18:33:22 +02:00
Avijeet
82688d5fb5
GRAPHICS: MACGUI: Add insertMenuItem
2022-07-31 18:33:22 +02:00
Avijeet
cd985e2a7f
GRAPHICS: MACGUI: Add flag to enforce mac font in win95 mode
2022-07-31 18:33:22 +02:00
Avijeet
fae3232d89
GRAPHICS: MACGUI: Don't trigger event for click on menuitem with submenu
2022-07-31 18:33:22 +02:00
Eugene Sandulenko
8b17ee5272
GRAPHICS: MACGUI: Properly load desktop tile if requested
2022-07-19 23:46:57 +02:00
Eugene Sandulenko
8ee1fcbcb8
GRAPHICS: MACGUI: Implemented debug method for printing WM mode
2022-07-19 23:46:57 +02:00