Use the new notifiable system to scale the character.

This commit is contained in:
King_DuckZ 2014-03-20 11:46:20 +01:00
parent 85d57fd681
commit dbf29f13d1
10 changed files with 28 additions and 16 deletions

View file

@ -109,6 +109,7 @@ namespace cloonel {
///------------------------------------------------------------------------
///------------------------------------------------------------------------
size_t SDLMain::RegisterForResChange (SizeNotifiable* parNotif) {
parNotif->NotifyResChanged(m_localData->sizeratio);
return m_localData->resChangeNotifList.Add(parNotif);
}
@ -123,10 +124,4 @@ namespace cloonel {
ushort2 SDLMain::WidthHeight() const noexcept {
return static_cast<ushort2>(m_localData->sizeratio.Resolution());
}
///------------------------------------------------------------------------
///------------------------------------------------------------------------
const float2& SDLMain::WHScaling() const noexcept {
return m_localData->sizeratio.Ratio();
}
} //namespace cloonel