Commit Graph
3567 Commits
Author SHA1 Message Date
Eric Culp 2215e0cb51 GRAPHICS: Add 32bit versions of interpolate* functions 2019-04-01 00:29:23 +03:00
Thanasis Antoniou 672d216d11 GUI: Fix loading new (not already cached) localized fonts 2019-03-12 00:42:58 +02:00
Lothar Serra Mari fe83c985be GUI: Allow GUI background colors other than black in Classic Theme (#1526)
GUI: Allow GUI background colors other than black in Classic Theme
2019-03-10 16:56:17 +02:00
Cameron Cawley 07834616b3 GRAPHICS: Fix dstFormat check in Surface::convertTo 2019-03-03 13:44:53 +01:00
Cameron Cawley fd1162cb71 GRAPHICS: Support converting to 3Bpp surfaces 2019-03-02 07:29:22 +01:00
Bastien Bouclet 66654cb376 ALL: Sync with ScummVM - rev. cd37d510f9 2019-01-26 20:47:55 +01:00
Cameron Cawley fa60ae728e GRAPHICS: Add a function to load TrueType fonts from fonts.dat 2018-12-25 12:47:42 +01:00
Cameron Cawley 2097c33b57 GRAPHICS: MACGUI: Make use of Common::String::format (#1454) 2018-12-23 15:57:20 +02:00
Paul Gilbert e232d024c5 GLK: Standardizing uint vs uint32 usage 2018-12-09 14:47:15 -08:00
Paul Gilbert 3e8ed4eafc GRAPHICS: Add convertToInPlace method to ManagedSurface 2018-12-08 19:05:59 -08:00
Paul Gilbert e5b73b2899 GRAPHICS: Add deltax optional parameter to Font drawString U32String version 2018-11-14 19:00:17 -08:00
athrxx e4e5e68f0d KYRA: implement SJIS features required for EOB II FM-Towns
- low res font drawing for intro and outro texts
- fat print mode for ingame texts
2018-11-14 17:22:20 +01:00
Thierry Crozat 3b542cea53 SURFACESDL: Respect filtering setting when performing aspect ratio correction 2018-10-24 23:34:41 +02:00
Bastien Bouclet ef0155a50c OPENGL: Allow the window to be resized
Fixes #1500.
2018-10-13 18:33:01 +02:00
David Fioramonti a66e661df1 GRAPHICS: Simplify trig usage in primitives
Combined if statements and simplified trig.

cos(atan2(y,x)) = x / sqrt(x^2 + y^2) and
sin(atan2(y,x)) = y / sqrt(x^2 + y^2).
2018-09-08 16:36:57 -07:00
Cameron Cawley 7a437e909c COMMON: Move new_strdup to common/str.cpp 2018-08-18 16:30:05 +02:00
Colin Snover f7e05a6ace GRAPHICS: Fix incorrect maximum length passed to strlcpy 2018-08-18 16:30:05 +02:00
Colin Snover c544d8050c GRAPHICS: Remove use of nonstandard strdup API & fix mismatched malloc/delete 2018-08-18 16:30:05 +02:00
Paul Gilbert 11e33ba3fc JANITORIAL: Removing trailing spaces after int casts 2018-08-17 20:30:20 -07:00
Andrei Prykhodko bb995bc871 GRAPHICS: MACGUI: fixed mem leak in MacText 2018-08-05 23:07:55 +03:00
Bastien Bouclet 7362060c47 GRAPHICS: Improve check to test if text fits in the target surface
When rendering text, especially truetype fonts, we would use the next
character avance metric to check if the character fits in the target
surface. This commit changes it to use the bounding box metric. The
bounding box represents the actual pixels that will be touched when
drawing the character.

This fixes an issue noticed on the main menu of Myst ME where the last
character of the string "OPTIONEN" would not be rendered despite there
being enough room to render it. More precisely, this ensures that
calling Font::getBoundingBox for a string, and then passing a surface
exactly the size of the returned bounding box to the draw function
actually renders all the characters.
2018-08-03 22:35:16 +02:00
David Fioramonti bafe22c782 GRAPHICS: Set thumbnail to nullptr when loading the thumbnail is skipped
Since Graphics::loadThumbnail can return successfully when a thumbnail is skipped
the caller may want to check to the see that the thumbnail is not null before using
it. Setting it to null is just defensive in case the caller didn't do so.

If the user tries to use the thumbnail in setThumbnail then it will just
show a black screen for the thumbnail rather than crashing if they have
not set the thumbnail to null.
2018-08-03 14:51:12 +02:00
Ľubomír Remák d9b3853dec COMMON: Fix kerning issue in wordWrapText. 2018-08-02 18:54:13 +02:00
Bastien Bouclet 53759fe53a ALL: Sync with ScummVM - rev. 2586ca2345 2018-07-31 21:09:37 +02:00
Andrei Prykhodko ed384a0deb GRAPHICS: MACGUI: fixed memory leaks in MacTextWindow 2018-07-30 07:03:00 +03:00
Andrei Prykhodko 75eceedfa5 GRAPHICS: MACGUI: add additional arg to MacTextWindow's constructor to disable cursor handler 2018-07-29 21:23:04 +03:00
Andrei Prykhodko 841e0c11d8 GRAPHICS: MACGUI: fixed SIGSEGV when ptr to menu in MacTextWindow is NULL 2018-07-29 21:23:04 +03:00
Andrei Prykhodko f447ccb390 GRAPHICS: MACGUI: fixed restoring screen 2018-07-26 05:18:04 +03:00
Andrei Prykhodko 6eee64e8fb GRAPHICS: MACGUI: added field initialization 2018-07-26 04:44:20 +03:00
Andrei Prykhodko a961427373 GRAPHICS: MACGUI: fixed memory leak 2018-07-26 04:37:00 +03:00
Eugene Sandulenko c48489f6d2 GRAPHICS: MACGUI: Restore screen on exiting from menu 2018-07-23 14:47:46 +02:00
Andrei Prykhodko f4eda44186 GRAPHICS: MACGUI: fixes for menu parser from win exe 2018-07-22 21:19:02 +03:00
Andrei Prykhodko 62c66bc67a GRAPHICS: MACGUI: added unicode submenu rendering 2018-07-22 20:37:44 +03:00
Andrei Prykhodko 71e933e778 GRAPHICS: MACGUI: fixed engine unpausing after releasing mouse 2018-07-22 20:12:37 +03:00
Andrei Prykhodko 997694b329 GRAPHICS: MACMENU: added missing field initialization 2018-07-22 12:48:15 +03:00
Eugene Sandulenko f515393a74 GRAPHICS: MACGUI: Fix color searching 2018-07-21 12:52:32 +02:00
Eugene Sandulenko 359609353a GRAPHICS: MACGUI: Fix compilation 2018-07-21 12:20:57 +02:00
Andrei Prykhodko 99f458dafa GRAPHICS: MACMENU: added menu parser from Win32 PE executable 2018-07-21 12:16:54 +03:00
Andrei Prykhodko df63dea4b6 GRAPHICS: MACMENU: added partial unicode support
It misses renderSubmenu impl and accelerator rendering
2018-07-21 12:16:54 +03:00
Andrei Prykhodko da34d0dce2 GRAPHICS: MACGUI: moved engine ptr, pause callback to private section 2018-07-20 22:05:46 +03:00
Andrei Prykhodko 8a27ac879e GRAPHICS: MACGUI: added initialization of engine ptr 2018-07-20 22:05:46 +03:00
Andrei Prykhodko e1460103e1 GRAPHICS: MACGUI: added WMModalMenuMode 2018-07-18 21:47:22 +03:00
Eugene Sandulenko 5684134ef6 GRAPHICS: MACGUI: Do not use hardcoded colors 2018-07-12 00:41:11 +02:00
Eugene Sandulenko f2b61dd814 GRAPHICS: MACGUI: Added isMenuActive() helper method 2018-07-11 22:45:36 +02:00
Eugene Sandulenko a14a1230e3 GRAPHICS: MACMENU: Calculate menu bounds after adding static items 2018-07-11 22:45:36 +02:00
Eugene Sandulenko 04dfa9b0a9 GRAPHICS: MACGUI: Made autohiding menu reentrable 2018-07-11 22:45:36 +02:00
Eugene Sandulenko ddfe6c3bce GRAPHICS: MACGUI: Implemented autohide menus 2018-07-11 22:45:36 +02:00
Eugene Sandulenko 2446810378 GRAPHICS: MACGUI: Added possibility to specify WM behaviour 2018-07-11 22:45:36 +02:00
Andrei Prykhodko 973e1e5667 GRAPHICS: fixed creating cursor group from some old executables 2018-07-08 20:20:54 +03:00
David Fioramonti e00881804f GFX: Use degree conversion common math funcs 2018-07-03 23:08:48 +01:00