Commit Graph
41 Commits
Author SHA1 Message Date
angstsmurf 8f3c504200 GLK: Convert text colors in glk_stylehint_set()
Text colors need to be converted from the Glk 0x00RRGGBB format to the
internal format used by ScummVM. Nothing seems to use this currently,
though.
2022-12-21 15:07:56 +01:00
angstsmurf 4e2658bb53 GLK: Return Glk colors from glk_style_measure
We need to convert color values back to Glk format before returning them
from glk_style_measure(). We do this by encoding the value as a string
and then to a long with strtol().

This fixes bug 13622 and the same problem (cyan background) in Magnetic
and Level9.
2022-12-21 15:07:56 +01:00
Avijeet d770f87e48 GLK: Fix glk_window_iterate. 2022-04-07 18:33:47 -07:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 0111a08560 GLK: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Paul Gilbert baccbedf50 GRAPHICS: Changed surface classes sizes from uint16 to int16 2021-07-04 18:24:27 -07:00
Eugene Sandulenko 5e7fe2dc57 JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Vladimir Serbinenko 29cfa7bb0f COMMON: Merge code for str.cpp and ustr.cpp
Most of the code in str.cpp and ustr.cpp is actually the same. Do some
template magic to merge them.
2020-10-31 14:05:30 +01:00
Paul Gilbert 15119e2ca0 GLK: GLULX: Fix toolbar rendering in Advent 350 2020-10-11 08:40:37 -07:00
aryanrawlani28 d2da98d3b0 GLK: More usage of translations
- Add helpers in Advsys, Comprehend & ZCode to match functionality provided for strings.
2020-08-30 14:43:41 +02:00
aryanrawlani28 12e4f871a3 GUI: U32: Improve u32 in all engine subsystems
- Common: add wordWrap function to ustr.cpp
- Bladerunner: Explicitly state we have a U32String in subs (same as Subtitles::loadOuttakeSubsText)
- Don't use translations for engine specific "put strings", because they might not support.
- SCI: Use const references for showScummVMDialog
- SCUMM:
-- Don't use translation in md5 warning. left comments with the translated version.
-- Remove some redundant headers in help.cpp
-- Don't use translation in handleSaveload when printing to console
-- Also, display success transaction correctly via u32::format
- TESTBED: Use fake constructor when setting label of button
- SKY: Correctly use translation when using SaveStateDescription
- ULTIMA: Don't use translations when display_string
- ENGINES:
-- GenerateUnknownGameReport correctly, with proper translations.
-- There was an error, where a function had been declared twice, in a header file. Correct this.
2020-08-30 14:43:41 +02:00
aryanrawlani28 bed05ea134 GUI: U32: Fix compilation errors across entire project
After the initial changes just to scummvm/gui for u32, this commit includes the whole project

- Widget creations now always have u32 descriptions, labels, or tooltips
- Message dialogs make use of default arguments instead of providing the same argument explicitly
- encode String::format properly before passing on as argument where necessary
- Modify hugo utils (yesNoBox and notify box) to use u32
- Also provide fake constructors for the above which redirect to the u32 constructor
- Convert all keymap descriptions to u32 across all engines
- showConfirmationDialog in mohawk now uses u32
- showScummVMDialog also uses u32
- Scumm engine has dialogs now which use u32
- General fixes and wrapping convertToU32String for setLabels and related functions
- Add a fake constructor to MesssageDialog which redirects to the u32 constructor
2020-08-30 14:43:41 +02:00
Paul Gilbert ac7b1e326d GLK: HUGO: Properly fix display images
The resource file format Hugo uses has named entries.
Because of this, the original Glk code added to Hugo
does a whole mess of reading in a picture, then copying
it to a dummy pic file with a dummy number, just so a
call to glk_image_draw could detect it.

Since this isn't the first time I've had to deal with
named resources, it ended up being cleaner to add a new
variation of glk_image_draw and glk_image_draw_scaled
that can take in a string image parameter. That way, I
was able to set up an archive class to represent the
resource file, and pass the resource name directly
without worrying about dummy picture numbers & files
2020-08-29 13:59:52 -07:00
Paul Gilbert 02a9a605c3 GLK: GLULX: Fix startup crashes for some games 2020-08-25 19:43:29 -07:00
D G Turner 2e91bf0eea GLK: Fix Missing Default Switch Cases in Engine Base Code
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-11 03:09:35 +00:00
D G Turner 74834e73f7 GLK: Fix Compilation on AmigaOS4 2019-11-25 11:37:13 +00:00
Paul Gilbert c57e8f14a7 GLK: Implement glk_schannel_create_ext 2019-11-24 20:30:43 -08:00
Paul Gilbert 4332df2bda GLK: LEVEL9: Allow for future graphic scaling 2019-10-26 11:13:29 -07:00
Paul Gilbert 07c8437e26 GLK: LEVEL9: Title screen graphics now showing 2019-10-26 11:13:29 -07:00
Paul Gilbert 401b010ef3 GLK: Implementing more gli object registration 2019-04-28 14:32:49 +10:00
Paul Gilbert 8e11a14939 GLK: GLULXE: Set up method definitions, glkop methods 2019-04-17 20:46:06 -07:00
Paul Gilbert 25b066520e GLK: FROTZ: Improved setup and handling of fg/bg colors 2019-02-16 15:17:51 -08:00
Paul Gilbert af2b1252d8 GLK: Change use of RGB tuplets to uint
This has several advantages, such as simplifying copying and
comparing colors. It will also make it easier to specify
zcolor_Transparent as a color
2019-01-31 21:54:34 -08:00
Paul Gilbert ece101ee4a GLK: FROTZ: Only wait for keypress in Beyond Zork title if mg1 present 2019-01-04 23:14:19 -08:00
Paul Gilbert f1d9722f3b GLK: FROTZ: Add support for pair windows to have more than 2 children
This is primarily for the V6 games, which have up to 8 windows
on-screen at the same time in arbitray positions
ext
2019-01-02 18:18:11 -08:00
Paul Gilbert 1021da132b GLK: Splitting font related info from Conf into their own classes 2018-12-31 18:34:42 -08:00
Paul Gilbert 7a21e23603 GLK: FROTZ: Implement PageUp/PageDn scrolling of desc area in Beyond Zork 2018-12-28 21:15:50 -08:00
Paul Gilbert e232d024c5 GLK: Standardizing uint vs uint32 usage 2018-12-09 14:47:15 -08:00
Paul Gilbert 7637edb5a2 GLK: Change all references to glui32 and glsi32 to uint and int
This should finally fix compilation for the Amiga, which had
difference sized types. And the renamed types are clearer for
ScummVM anyway
2018-12-09 11:36:20 -08:00
Paul Gilbert 867adc6dca GLK: Sound volume and pausing methods 2018-12-08 20:22:31 -08:00
Paul Gilbert 34d01af004 GLK: Fix Buildbot identified warnings 2018-12-08 19:45:44 -08:00
Paul Gilbert 0cbd51641b GLK: FROTZ: Further sound handling 2018-12-08 19:05:59 -08:00
Paul Gilbert 3661fc61ec GLK: Beginnings of Sounds manager 2018-12-08 19:05:59 -08:00
Paul Gilbert 41b62ab00d GLK: TADS: Add a number of GLK interface methods 2018-12-08 19:05:59 -08:00
Paul Gilbert 1c190e50b4 GLK: Mark text strings as translateable 2018-12-08 19:05:59 -08:00
Paul Gilbert 6f50812493 GLK: Added RawDecoder class for new raw picture data format 2018-12-08 19:05:59 -08:00
Paul Gilbert 0b1e695f24 GLK: FROTZ: Beginnings of support for Infocom picture files 2018-12-08 19:05:59 -08:00
Paul Gilbert bd86fd7bbf GLK: Implementing picture loading 2018-12-08 19:05:59 -08:00
Paul Gilbert 41a4378169 GLK: SCOTT: Don't show another line prompt when game is exiting 2018-12-08 19:05:59 -08:00
Paul Gilbert 67275924b5 GLK: Derive detection from MetaEngine rather than AdvancedMetaEngine 2018-12-08 19:05:59 -08:00
Paul Gilbert a2104deb4c GLK: Changing class and namespaces from Gargoyle to Glk 2018-12-08 19:05:59 -08:00