Use the new notifiable system to scale the character.
This commit is contained in:
parent
85d57fd681
commit
dbf29f13d1
10 changed files with 28 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue