core/window: fix initial rotation assignment

This commit is contained in:
Mathieu Virbel 2012-03-17 13:16:46 +01:00
parent 63f952bae4
commit 2ebe07e9a9
1 changed files with 2 additions and 0 deletions

View File

@ -325,6 +325,8 @@ class WindowBase(EventDispatcher):
if x not in (0, 90, 180, 270):
raise ValueError('can rotate only 0, 90, 180, 270 degrees')
self._rotation = x
if self.initialized is False:
return
self.dispatch('on_resize', *self.size)
self.dispatch('on_rotate', x)