core:Window fix `_density` to default to 1. Check for changes in density before doing

sdl2/retina specific work
This commit is contained in:
akshayaurora 2015-03-31 21:13:02 +05:30
parent 627ffdfa5d
commit f306326552
1 changed files with 1 additions and 5 deletions

View File

@ -269,7 +269,6 @@ class WindowBase(EventDispatcher):
__initialized = False
_fake_fullscreen = False
_density = 1
_win = None
# private properties
_size = ListProperty([0, 0])
@ -955,10 +954,7 @@ class WindowBase(EventDispatcher):
from math import radians
w, h = self.system_size
# FIXME this is breaking the separation between the base and
# implementation. It should not happen, as now SDL2 implementation only
# got this.
if hasattr(self, "_win") and hasattr(self._win, '_get_gl_size'):
if self._density != 1:
w, h = self.size
smode = self.softinput_mode