From 2ebe07e9a99146f214f491ce9e2287031185ee85 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Sat, 17 Mar 2012 13:16:46 +0100 Subject: [PATCH] core/window: fix initial rotation assignment --- kivy/core/window/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kivy/core/window/__init__.py b/kivy/core/window/__init__.py index af6b6e707..b47fdb51f 100755 --- a/kivy/core/window/__init__.py +++ b/kivy/core/window/__init__.py @@ -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)