Commit graph

11 commits

Author SHA1 Message Date
King_DuckZ
5e76b49cae Use the deferred virtual call mechanism to avoid the virtual
call bug in the constructor.

See docs/wrong_virtual_call.md for a description.
2016-11-10 23:19:55 +01:00
King_DuckZ
72bfb64795 NotifyResChanged() should not be virtual itself.
Make an OnResChanged() virtual method instead.
2016-11-09 23:35:19 +01:00
King_DuckZ
650f8d6de1 Replace vector.hpp with vectorwrapper 2016-11-02 18:37:45 +01:00
King_DuckZ
b4ddfa8f4f Fix for a crash occurring when the window is resized.
Temporary Platform objects were registering themselves.
The move ctor would then initialize the final object in
the circular buffer (see PlatformSystem), but it would
leave the address of the temporary object registered in
the ObserversManager.
2014-07-06 02:21:25 +02:00
King_DuckZ
0c8e9b2d7c Typo fix. 2014-07-05 22:46:09 +02:00
King_DuckZ
b21fe20459 Buildfix 2014-03-28 10:51:48 +01:00
King_DuckZ
2a4ae78374 Move semantics in SizeNotifiable. 2014-03-26 23:00:02 +01:00
King_DuckZ
4d9190b0db Swapping support added to SizeNotifiable. 2014-03-26 10:42:43 +01:00
King_DuckZ
d0a052ddb2 Refactoring in SizeNotifiable.
Class is a template now and accepts a registraton policy.
2014-03-20 20:21:59 +01:00
King_DuckZ
dbf29f13d1 Use the new notifiable system to scale the character. 2014-03-20 12:39:39 +01:00
King_DuckZ
f0a38a2f8a Adding new files to register objects that require to be notified when resolution changes.
Also added a structure that holds the resolution and the current scaling ratio.
2014-03-20 12:39:39 +01:00