Commit Graph
32 Commits
Author SHA1 Message Date
Walter Agazzi a7a995571b AGS: Engine: reorganized code in DrawingSurface_DrawImageImpl() a little
From upstream a5f327901d5235ca2dd6a674cd47109a110bc9fd
2024-10-30 18:07:42 +02:00
Walter Agazzi 1d70b396d2 AGS: Engine: store dynamic surfaces in unique_ptrs
From upstream 885df22361432d1d273e5f1dde4309b2d9ae38e1
2024-10-30 18:07:42 +02:00
Walter Agazzi 184a45ad02 AGS: Engine: fix warning text in DrawImage to mention any "destination"
From upstream 9d12250e5756f406eb1cfe2d7062d5d8bd931b0c
2024-10-30 18:07:42 +02:00
Walter Agazzi 80dcc60a78 AGS: ScriptAPI: added formatting support to a few text displaying functions
This refers to:
* DisplayAtY();
* DrawingSurface.DrawStringWrapped();
* Character.SayAt();
* Character.SayBackground();

From upstream e90f366b5abc2f7a89f16a40f24ccdc63fbe3601
2024-10-30 18:07:42 +02:00
Walter Agazzi cec77078f6 AGS: Convert several files to new API registering 2024-10-30 18:07:42 +02:00
Walter Agazzi 3cfeee9c0a AGS: Engine: support RTL in DrawString
From upstream 6de602d9086c351d32217be675379f078cc29099
2024-10-30 18:07:42 +02:00
Walter Agazzi 90f94f74c0 AGS: Engine: reduced spriteset's [] operator use where possible
The spriteset's [] operator loads a sprite, but some operations may
 omit that and check the preloaded information instead.
This also makes it more certain where the actual sprite's bitmap is necessary.
From upstream df30fc1edd30d4f334addaf7883286e745dea2c3
2024-10-30 18:07:42 +02:00
Walter Agazzi a90e5b7dd7 AGS: Engine: added missing exclusive variadic api impls for plugins
from upstream a61392135e734898b93d73db42942dc881250ef2
2024-10-30 18:07:42 +02:00
Walter Agazzi 09039ca805 AGS: Engine: brought multivariant script api functions to naming consistency
The idea is that the old variants have internal names with number
(signifying number of args), while the latest variant has a name without number.

Make sure there's a distinct function for each variant, and older vars are calling later ones in a sequence.
These calls likely to be inlined.
From upstream ca48926a37e848a1bcc162f77cc81e63ec7a1ca0
2024-10-30 18:07:42 +02:00
Walter Agazzi 3a5ccd4cba AGS: Engine: moved dynamic object management functions to a separate unit
From upstream 1a9df937e3ac9eba0c2f5b663507a52569d635e0
2024-10-30 18:07:42 +02:00
Hubert Maier 857677df9c JANITORIAL: Fix simplier typo in drawing_surface.cpp 2024-07-15 20:50:41 +03:00
Walter Agazzi c366ce5eef AGS: Removed update_polled_stuff_if_runtime() from data loading functions
Leave it with a new name as `update_polled_stuff()` only in functions
related to the game update.
From upstream 95dc139f51e704da19792e5480e69bbfe7ec27aa
2023-03-12 20:58:28 +00:00
Paul Gilbert 97c12e8435 AGS: Merged Character and ObjectCache structs, and hid in draw.cpp
From upstream 753d47d975b10666702c47a22cbc4e68847787f1
2022-05-05 22:41:09 -07:00
Paul Gilbert 8e4254b839 AGS: Refactored walk-behinds calculation and texture generation
From upstream ac0c4cea6a6e41238fe74f0753fa6a458f05d954
2022-05-05 22:41:05 -07:00
Paul Gilbert a6f42ad1ab AGS: Fixing various "unused va/arg" warnings + removed empty funcs
From upstream 61771ecd638338806c40d0da2bf1addea06cac90
2022-04-25 21:44:40 -07:00
Paul Gilbert a633e9d72f AGS: Fixing various type-cast warnings
From upstream 6c42c7331e96386721f28c92ec3cb4cd039e10cd
2022-04-25 20:06:19 -07:00
Paul Gilbert 67628b9c6a AGS: Suppress endless "unused param" warnings in script api
From upstream b4a5ec72c059bc3c65e89a45a8b1218068a2015a
2022-04-24 16:00:05 -07:00
Paul Gilbert 62574f8eda AGS: Use outlined width/height when arranging text on GUI
From upstream 8fd4b1b55dc08949e70d295afb4be91d1a26da5c
2022-04-22 20:54:00 -07:00
Paul Gilbert d42b639142 AGS: Always precalculate and save font linespacing (as outlined)
From upstream 8ba3a77e38a6dc8ace6d6393042730d73292a1a7
2022-03-22 22:30:14 -07:00
Paul Gilbert dc3ce9f70a AGS: Renamed few font functions for consistent naming style
From upstream 9c355da410b734edc79212009a5e1be0b502c3b0
2022-03-22 22:30:13 -07:00
Paul Gilbert 659be0a4e6 AGS: Fixed few warnings
From upstream b416d55eb74745db0da5a3cb2654e063cd057ded
2022-03-17 21:49:23 -07:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paul Gilbert 9aeaf99a52 AGS: In DrawingSurface.DrawImage clamp transparency instead of error
From upstream e00eabf57ceb32523ed81007e06e3587abe6d013
2021-08-03 18:56:35 -07:00
Paul Gilbert c9e6af5750 AGS: Do not error on DrawingSurface drawing over itself
From upstream aeb65ccbf3c94c1d4a0d73359cf93315bc0849d8
2021-08-03 18:56:35 -07:00
Paul Gilbert a86a7f649f AGS: Change error for surface drawing onto itself to a warning 2021-08-01 17:35:08 -07:00
Paul Gilbert ae6479ffee AGS: Recache walkbehinds after the mask was drawn upon
From upstream 1d10e3776a52b538916166215f239d39e32e4d32
2021-07-31 14:34:10 -07:00
Paul Gilbert 37c51eeac5 AGS: Support extended params for DrawSurface
From upstream 67810b264d60f55571b1fb604ee5de833a08bfde
2021-07-27 22:03:36 -07:00
Paul Gilbert 5b4ce2d365 AGS: support source rectangle for DrawImage
From upstream 27e2f431ed892a0dd9bea8c1831846ca0ca493e1
2021-07-27 22:03:36 -07:00
Paul Gilbert 83bf163365 AGS: Move script exports for DrawingSurface to a new plugins/core/ folder 2021-07-16 19:48:13 -07:00
Paul Gilbert 454cc0fff9 AGS: Properly move Lines global into Globals 2021-07-08 20:37:51 -07:00
Paul Gilbert eb1e337edd AGS: Removed String's "const char*" conversion operator
From upstream 7c426674e7e53bffe9120f8ffc059b77fa03a606
2021-06-13 21:08:59 -07:00
Paul Gilbert 701396361c AGS: Import of fresh codebase 2021-06-13 21:08:44 -07:00