Commit Graph
86814 Commits
Author SHA1 Message Date
Andrei Prykhodko 47130eceb3 COMMON: changed code page constant name from ascii to utf8 2018-08-05 22:50:42 +03:00
Andrei Prykhodko c255de107d PINK: implemented text drawing in ActionText for English version 2018-08-05 22:08:54 +03:00
Andrei Prykhodko ca54a72072 COMMON: made code pages conversion arrays static and constant 2018-08-05 21:57:36 +03:00
Andrei Prykhodko 9948b2452f COMMON: named CodePage enum 2018-08-05 21:53:31 +03:00
Andrei Prykhodko 62c250a8be COMMON: added method to convert text from various code pages to Unicode 2018-08-05 20:32:25 +03:00
Bastien Bouclet 172cdab90f BUILD: Save the PKG_CONFIG_LIBDIR environment variable across rebuilds 2018-08-04 07:55:23 +02:00
Bastien Bouclet df613af817 BUILD: Check if pkg-config is available 2018-08-04 07:55:23 +02:00
Lars Wendler 2a0a5f4965 BUILD: Prefer pkg-config over freetype-config if possible
As of freetype-2.9.1 the freetype-config script no longer gets installed
by default.
2018-08-04 07:55:23 +02:00
Colin Snover 8cf2b8e31b BUILD: List all used environmental variables in configure help 2018-08-04 07:55:23 +02:00
Colin Snover 72791aaa23 BUILD: Respect all build tool overrides from environment
Previously, only CXX could be overridden by the environment, which
made it impossible to correctly set tools for cross-compiler
toolchains which were not compatible with the default system tools.
2018-08-04 07:55:23 +02:00
Bastien Bouclet ad3feae490 MOHAWK: RIVEN: Fix crash when clicking on a marble with the mouse moving
In some cases a mouse moved event could be handled between the moment
the xtakeit script was queued and the moment it is executed (on the same
frame), causing the mouse position no longer to be over a marble
rectangle.

Fixes #10647.
2018-08-04 06:42:17 +02: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
Thierry Crozat f2049d4d1e I18N: Update translations templates 2018-08-03 14:58:18 +02:00
Adrian Frühwirth a4ab2d8cfe SAGA: Deduplicate kScriptTimeTicksPerSecond constant 2018-08-03 14:58:09 +02:00
David Fioramonti de1a35a9d9 GROOVIE: Allow saving via GMM and increase save slots to 25
If the user enters in an invalid description for the save then it will be
simplified by the saved name cache process in Script::savegame.

I checked this with t7g, but not with the 11th guest or any other Groovie game.

The original in-game loading/saving can still only access the first 10 save
slots (0-9).

Its possible to saving via the GMM when the game is interactive.

Loading a game saved via the gui using the original in-game load menu
works fine.

Saving via the GMM with timestamp works, but only only saves the characters
up to the first non-alpha non-letter characer.
2018-08-03 14:53:43 +02:00
Thierry Crozat 78e165ed22 I18N: Update translations templates 2018-08-03 14:53:04 +02:00
David Fioramonti f06cf65479 TINSEL: Add playTime to saved game and display it
Also bumps the saved game format version to 3.

I changed the order of how the data is saved so that the playtime could
be read in without skipping as much data.

This is because querySaveMetaInfos only needs the metafields where as
saveload::DoRestore() needs more of the header.

A crash was happening when trying to delete a saved game from the launcher.
It is because the engine is not initalized. I assign a dummy value to
resolve the issue.

Loading saved games from previous versions works.

When an old version saved game is loaded it will start with zero playtime.

Old saved games are shown as not having playtime data.
2018-08-03 14:52:47 +02:00
Cameron Cawley 5cf3b75deb VIDEO: Fix Theora playback when building with Tremor 2018-08-03 14:52:09 +02:00
David Fioramonti 2649c429db LAB: By default skip thumbnail loading for readSaveGameHeader
This changes the convention back to skipping the thumbnail loading
for readSaveGameHeader. querySaveMetaInfos is the only place it
shouldn't be skipped.
2018-08-03 14:51:12 +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
David Fioramonti 3922370275 BLADERUNNER: Add cos/sine table
This uses the one in Common.

The engine now contains a 10-bit cosine and sine table.
It used mostly for vector math.

This also allows two vector functions to be removed from vector.h.
2018-08-03 14:50:45 +02:00
lolbot-iichan d91307e401 COMMON: Added Ukrainian language
Common::UA_UKR is needed for FoxTail game at WinterMute engine
2018-08-03 00:43:33 +02:00
whiterandrek e9fde87cf2 PINK: fixed bug when in walking state you choose another location 2018-08-02 21:09:27 +03:00
Ľubomír Remák d9b3853dec COMMON: Fix kerning issue in wordWrapText. 2018-08-02 18:54:13 +02:00
Eugene Sandulenko d79667015a NEWS: Formatting fixes 2018-08-02 11:04:45 +02:00
Colin Snover 8da86418bf PARALLACTION: Fix use-after-free on quit
Parallaction::_gfx is referenced by objects destroyed when
Parallaction::_input is destroyed so it cannot be destroyed first.
2018-08-01 16:44:51 +01:00
Colin Snover 69df2e2d0e PARALLACTION: Fix null pointer dereference on quit 2018-08-01 16:44:51 +01:00
Colin Snover 8f7f7a9c2b PARALLACTION: Fix invalid array access at dialogue selection
Also removes an unnecessary second condition check for oldAnswer
by moving that closer to its point of use.
2018-08-01 16:44:51 +01:00
Thierry Crozat 65b108b4cf NEWS: Mention new display stretch mode 2018-08-01 16:30:56 +01:00
Eugene Sandulenko 926f2e3cab NEWS: Formatting fixes 2018-08-01 10:54:45 +02:00
Bastien Bouclet de886a8b58 AUDIO: Fix broken physical audio CD playback on non-win32
The play method did not override the base class due to the addition of
the soundType parameter.
2018-07-31 21:44:26 +02:00
Thierry Crozat 2586ca2345 I18N: Update translations templates 2018-07-31 14:31:19 +02:00
D G Turner 574318c052 MOHAWK: Fix Unused Variable Compiler Warning.
This occurs when FreeType2 is not enabled and thus fontHeight variable
is unused.
2018-07-31 13:38:33 +01:00
D G Turner 2a4fa26d52 CRUISE: Fix Possible Invalid Thumbnail Pointer Access. 2018-07-31 09:22:26 +01:00
Lothar Serra Mari 388f16d3bc I18N: Update translation (German)
Currently translated at 100.0% (989 of 989 strings)
2018-07-30 21:07:48 +02:00
Thierry Crozat 53d0fe22d9 COMMON: Fix HashMap never reusing erased items storage
When erasing and inserting many items this caused the hashmap capacity
to grow more than it should which resulted in performances issues (and
possibly memory issues as well). The issue was reported on IRC today
with the wintermute engine.
2018-07-30 19:32:02 +01:00
Thierry Crozat cb6d3b575c I18N: Update translations templates 2018-07-30 20:12:26 +02:00
Bastien Bouclet 3a7f85971f MOHAWK: MYST: Add support for the localized 25th games 2018-07-30 20:13:16 +02:00
D G Turner 3f91accbd7 DM: Fix Possible Uninitialized Variable Usage Compiler Warnings. 2018-07-30 14:07:23 +01:00
D G Turner 941fe1dd7e AUDIO: Fix Compiler Shadowing Warnings. 2018-07-30 09:27:31 +01:00
Andrei Prykhodko ed384a0deb GRAPHICS: MACGUI: fixed memory leaks in MacTextWindow 2018-07-30 07:03:00 +03:00
Thierry Crozat 459f26fcaf I18N: Regenerate translations data file 2018-07-30 05:05:07 +02:00
Andrei Prykhodko f79eceda10 PINK: force cursor updating when entering to pda page 2018-07-29 22:54:05 +03:00
Andrei Prykhodko 8530d9fbc5 PINK: fixed Coverity warnings 2018-07-29 21:34:20 +03:00
Andrei Prykhodko bb732cd9c8 PINK: add partial implementation of ActionText 2018-07-29 21:23:04 +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
Thierry Crozat 8ce7175ab7 I18N: Update translations templates 2018-07-29 14:58:41 +02:00
Thierry Crozat f337c90618 GUI: Fix graphics options visibility depending on supported featuress 2018-07-29 13:57:20 +01:00
Paolo Bossi 95fb46049e I18N: Update translation (Italian)
Currently translated at 100.0% (989 of 989 strings)
2018-07-29 10:32:26 +02:00