Commit Graph
36 Commits
Author SHA1 Message Date
Le Philousophe 73c09b1d56 WINTERMUTE: Don't use unsafe strcat and strcpy 2022-10-23 22:46:19 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
lolbot-iichan ea27ffd8a3 WINTERMUTE: Refactor UIEdit::handleKeypress()
This fixes https://bugs.scummvm.org/ticket/11033

Removed checking printable property for system keys.
Refactored whole function to make it a bit more readable.

Reference implementations:
https://github.com/retrowork/wmelite/blob/master/src/UIEdit.cpp#L724

https://github.com/retrowork/Wintermute-Engine/blob/master/src/engine_core/wme_base/UIEdit.cpp#L708
2019-12-19 15:50:25 +02:00
D G Turner d7a22f72a1 WINTERMUTE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-14 23:28:07 +00:00
Einar Johan Trøan Sømåen 1eca88cb39 WINTERMUTE: Don't crop UIEdit strings to negative sizes
If _maxLength was -1, we would end up with a 0-size allocation,
and a write that starts right before it, which gives odd results.
2016-10-07 00:19:58 +02:00
Johannes Schickel fc5ef58fff WINTERMUTE: Make GPL headers consistent in themselves. 2014-02-18 02:39:40 +01:00
Einar Johan Trøan Sømåen 237d3d86ec WINTERMUTE: Transfer Char* explicitly when saving/loading. 2013-11-05 13:54:25 +01:00
Einar Johan Trøan Sømåen d07409def7 WINTERMUTE: Transfer Sint32s explicitly when saving/loading. 2013-11-05 13:48:11 +01:00
Einar Johan Trøan Sømåen 7892188bcf WINTERMUTE: Transfer Uint32s explicitly when saving/loading. 2013-11-05 13:31:13 +01:00
Willem Jan Palenstijn a979072410 WINTERMUTE: Clean up byte/char casts in loading/parsing 2013-10-01 23:20:43 +02:00
Einar Johan Trøan Sømåen 12e7cb401f WINTERMUTE: Formatting with Astyle (UIButton, UIEdit, UIObject, UIWindow, TransparentSurface) 2013-09-30 11:18:54 +02:00
Johannes Schickel 1ce54c217a WINTERMUTE: Fix end of namespace comments. 2013-08-04 00:51:09 +02:00
Einar Johan Trøan Sømåen 51e17d9f86 WINTERMUTE: Further reduce the amount of int->int32-confusion. 2013-04-20 18:11:47 +02:00
Einar Johan Trøan Sømåen 72d0affe01 WINTERMUTE: Rename transfer(void *) to transferPtr(void *) to avoid overload-misses. 2013-04-19 17:17:53 +02:00
Einar Johan Trøan Sømåen cbae39ab87 WINTERMUTE: Move settings from BaseGame to separate struct. 2013-04-17 19:42:05 +02:00
Einar Johan Trøan Sømåen 74e32bd332 WINTERMUTE: Privatize a few more members in BaseGame. 2013-02-06 13:40:35 +01:00
Einar Johan Trøan Sømåen 980dc4a456 WINTERMUTE: Replace all NULLs with nullptr. 2013-01-26 18:07:07 +01:00
Einar Johan Trøan Sømåen 798b440256 WINTERMUTE: Replace a few NULLs with nullptr. 2013-01-26 17:36:20 +01:00
Einar Johan Trøan Sømåen afc21941e3 WINTERMUTE: Make scGetProperty use Common::String& instead of const char* 2012-09-29 00:47:12 +02:00
Einar Johan Trøan Sømåen 2a6e551695 WINTERMUTE: Only include base_renderer.h where needed 2012-09-11 02:51:33 +02:00
Willem Jan Palenstijn b4090ead4d WINTERMUTE: Convert CRLF to LF 2012-09-04 22:17:23 +02:00
Einar Johan Trøan Sømåen 2fd38f47e0 WINTERMUTE: Replace col_templ's getSize with Common::Array::size() 2012-08-31 19:23:41 +02:00
Einar Johan Trøan Sømåen 2039ea6b8d WINTERMUTE: Fix g++ warnings listed by LordHoto 2012-08-31 14:01:18 +02:00
Einar Johan Trøan Sømåen fed19cb66a WINTERMUTE: WinterMute -> Wintermute 2012-08-13 03:42:30 +02:00
Einar Johan Trøan Sømåen 9b5cf8f1ba WINTERMUTE: Introduce a Singleton-class for holding registry/filemanager. 2012-07-29 02:34:44 +02:00
Einar Johan Trøan Sømåen 8ed71a99f6 WINTERMUTE: Constructor(args): SuperClass(args) -> Constructor(args) : SuperClass(args) 2012-07-27 19:37:14 +02:00
Einar Johan Trøan Sømåen ef11f9d0c5 WINTERMUTE: Run Astyle with add-braces to break one-line statements into easier-to-read-code. 2012-07-26 15:59:26 +02:00
Einar Johan Trøan Sømåen fa96c9ea18 WINTERMUTE: "delete []" -> "delete[]" 2012-07-25 21:05:03 +02:00
Einar Johan Trøan Sømåen c7eda9abc8 WINTERMUTE: Encapsulate and distance BasePersistenceManager from Base. 2012-07-23 03:42:27 +02:00
Einar Johan Trøan Sømåen 448911930d WINTERMUTE: Remove unused code from platform_osystem.h 2012-07-23 03:10:41 +02:00
Einar Johan Trøan Sømåen d1f7730ec2 WINTERMUTE: Encapsulate BaseRenderer::_rectList and replace it by Common::Array 2012-07-23 01:30:11 +02:00
Einar Johan Trøan Sømåen 8c378f794e WINTERMUTE: Wrap _name in base_named_object in getters/setters. 2012-07-22 23:17:32 +02:00
Einar Johan Trøan Sømåen f6a5a2a0d5 WINTERMUTE: Wrap away base_script_holder's _filename field in getters/setters, avoiding direct writes. 2012-07-22 22:55:54 +02:00
Einar Johan Trøan Sømåen b5a07fef8e WINTERMUTE: Get rid of the C-prefix for class-definitions. 2012-07-21 21:01:47 +02:00
Einar Johan Trøan Sømåen 5683f07633 WINTERMUTE: Rename CamelCased filenames to prefixed_under_score-filenames
This is mostly a lead-up to namespacing the Ad/Base folders, and then
possibly removing the prefixes from the files, it also has the added
benefit of getting rid of the odd case-typos that makes for issues
on platforms that don't ignore case.
2012-07-21 19:15:33 +02:00