Skip to content

Commit

Permalink
core:Window fix _density to default to 1. Check for changes in dens…
Browse files Browse the repository at this point in the history
…ity before doing

sdl2/retina specific work
  • Loading branch information
akshayaurora committed Mar 31, 2015
1 parent 627ffdf commit f306326
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions kivy/core/window/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ class WindowBase(EventDispatcher):
__initialized = False
_fake_fullscreen = False
_density = 1
_win = None

# private properties
_size = ListProperty([0, 0])
Expand Down Expand Up @@ -955,10 +954,7 @@ def update_viewport(self):
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
Expand Down

0 comments on commit f306326

Please sign in to comment.