Commit Graph
78 Commits
Author SHA1 Message Date
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
Eugene Sandulenko 8156201f28 WINTERMUTE: Remove redundant check.
If new() was unsuccessful, then we should bail out immediately,
but we always assume we have enough memory for ScummVM.
2016-05-14 11:48:33 +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
Einar Johan Trøan Sømåen d6b9d7de8f WINTERMUTE: Remove BasePlatform::setRect (replace with member-call) 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen efb8031b3c WINTERMUTE: Remove BasePlatform::isRectEmpty (replace with member-call). 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen 3fb4183909 WINTERMUTE: Remove BasePlatform::setRectEmpty (replace with member-call) 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen 538c5935f9 WINTERMUTE: Transfer Point32s explicitly when saving/loading. 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen 95d2ed1a9b WINTERMUTE: Transfer Rect32s explicitly when saving/loading. 2013-10-29 02:59:52 +01:00
Einar Johan Trøan Sømåen 6b4adab654 WINTERMUTE: Transfer booleans explicitly when saving/loading. 2013-10-28 19:19:12 +01:00
Einar Johan Trøan Sømåen 889c3c9801 WINTERMUTE: Deconstify UIObject::getHeight() to fix a shadowed overload. 2013-10-28 18:37:20 +01:00
Willem Jan Palenstijn a979072410 WINTERMUTE: Clean up byte/char casts in loading/parsing 2013-10-01 23:20:43 +02:00
Willem Jan Palenstijn 8e58be7a1d Merge branch 'master' into wme_rendering 2013-09-30 22:05:32 +02:00
Willem Jan Palenstijn 057b01951a WINTERMUTE: Add displayTiled function to replace repeatLastDraw
This avoids queueing many tickets for a UITiledImage, replacing
them by a single tiled ticket.
2013-09-30 22:03:48 +02:00
Eugene Sandulenko 5cc0850a67 WINTERMUTE: Fix compiler warnings 2013-09-30 14:36:59 +03:00
Einar Johan Trøan Sømåen ccd3258bdc WINTERMUTE: Use ; and not , to separate delete and new. 2013-09-30 11:19:54 +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
Einar Johan Trøan Sømåen 15d98724d8 WINTERMUTE: Formatting (Clean up extra whitespace in UIObject). 2013-09-30 11:13:29 +02:00
Einar Johan Trøan Sømåen 5afb297e39 WINTERMUTE: Constify some getters in TransparentSurface, UIObject and UIWindow 2013-09-30 11:12:25 +02:00
Tobia Tesan f7a9e921ae WINTERMUTE: Formatting 2013-09-21 23:22:50 +02:00
Tobia Tesan 1023ac4b33 WINTERMUTE: const'ify getters 2013-09-21 23:22:48 +02:00
Tobia Tesan 5b8a6885c6 WINTERMUTE: s/put/set/ in setters 2013-09-21 23:22:46 +02:00
Tobia Tesan 2a977dec8c WINTERMUTE: add UIButton::setTextAlign 2013-09-21 23:22:43 +02:00
Tobia Tesan 417bf3db02 WINTERMUTE: Make sprites private in UIButton 2013-09-21 23:22:41 +02:00
Tobia Tesan 1869481767 WINTERMUTE: Setters/getters for UIButton 2013-09-21 23:22:37 +02:00
Tobia Tesan 59f4a9e7ac WINTERMUTE: Keep some attributes private in UIButton 2013-09-21 23:22:35 +02:00
Tobia Tesan b22eaaa98a WINTERMUTE: Keep attributes private in UIEdit 2013-09-21 23:22:32 +02:00
Tobia Tesan 1361fcde7c WINTERMUTE: Avoid feeding setWidth negative values 2013-09-21 23:22:27 +02:00
Tobia Tesan 91ebad46d3 WINTERMUTE: Keep _back private in UIObject 2013-09-21 23:22:25 +02:00
Tobia Tesan 252e0c17ec WINTERMUTE: Make _parentNotify private in UIObject 2013-09-21 23:22:23 +02:00
Tobia Tesan aafe8c1f0d WINTERMUTE: Add getListener() 2013-09-21 23:22:19 +02:00
Tobia Tesan 2e457d96e8 WINTERMUTE: Make some members of UIObject private 2013-09-21 23:22:16 +02:00
Tobia Tesan b033850e8a WINTERMUTE: Keep attributes in UIWindow private 2013-09-21 23:22:12 +02:00
Tobia Tesan 38369687fe WINTERMUTE: Make TextAlign private in UIText 2013-09-21 23:22:10 +02:00
Tobia Tesan 6e21111847 WINTERMUTE: Make *_entity private in UIEntity 2013-09-21 23:22:08 +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 2625f3931a WINTERMUTE: Fix a few more int->int32's spotted by fuzzie. 2013-04-20 17:37:19 +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 6c55213cd5 WINTERMUTE: Add 'override' to most Script-related functions. 2013-04-18 18:04:51 +02:00
Einar Johan Trøan Sømåen b6242d0ea5 WINTERMUTE: Use int32 instead of int in classes. 2013-04-18 17:45:50 +02:00
Einar Johan Trøan Sømåen 3597f7596d WINTERMUTE: Constify _width and _height in BaseRenderer. 2013-04-17 21:21:17 +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 519821b53b WINTERMUTE: Further improve UITiledImage-drawing. 2013-01-24 15:11:28 +01:00
Einar Johan Trøan Sømåen af857147c2 WINTERMUTE: Privatize members in UITiledImage 2012-12-13 20:55:17 +01:00