Skip to content

Commit

Permalink
Rename to window._get_effective_window_size()
Browse files Browse the repository at this point in the history
  • Loading branch information
cpbotha committed Aug 1, 2015
1 parent 20512ab commit 74c60a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kivy/core/window/__init__.py
Expand Up @@ -528,7 +528,7 @@ def _get_system_size(self):
'''Real size of the window ignoring rotation.
'''

def get_effective_size(self):
def _get_effective_size(self):
'''On density=1 and non-ios displays, return system_size, else
return scaled / rotated size.
Expand Down Expand Up @@ -954,7 +954,7 @@ def on_motion(self, etype, me):
The Motion Event currently dispatched.
'''
if me.is_touch:
w, h = self.get_effective_size()
w, h = self._get_effective_size()
me.scale_for_screen(w, h, rotation=self._rotation,
smode=self.softinput_mode,
kheight=self.keyboard_height)
Expand Down
2 changes: 1 addition & 1 deletion kivy/input/providers/mouse.py
Expand Up @@ -108,7 +108,7 @@ def update_graphics(self, win, create=False):

# use same logic as WindowBase.on_motion() so we get correct
# coordinates when _density != 1
w, h = win.get_effective_size()
w, h = win._get_effective_size()

self.scale_for_screen(w, h, rotation=win.rotation)

Expand Down

0 comments on commit 74c60a2

Please sign in to comment.