Skip to content

Commit

Permalink
client: minor code clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
  • Loading branch information
xymus committed Aug 16, 2014
1 parent 8f42125 commit 0494fb7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/client/controls.py
Expand Up @@ -124,10 +124,8 @@ def draw( self, display, skipFinalize=False ):
if not self.lastResolution:
self.lastResolution = display.resolution
elif self.lastResolution != display.resolution:
# print "moving controls"
diffWidth = display.resolution[0]-self.lastResolution[0]
diffHeight = display.resolution[1]-self.lastResolution[1]
# print diffWidth, diffHeight, self.lastResolution, display.resolution
for control in self.controls:
if isinstance( control, Control ):
if not control.stickLeft: # sticks to the right of the screen
Expand Down
1 change: 0 additions & 1 deletion src/client/displays/__init__.py
Expand Up @@ -93,7 +93,6 @@ def drawBackground( self, img, (ix, iy) ):
for y in range( bgy - self.getHeight( self.background ), bgy+self.resolution[ 1 ], self.getHeight( self.background ) ):
self._draw( self.background, (x,y) )


def getWidth(self, img):
raise Exception( "Abstract function, should not be used" )

Expand Down
1 change: 0 additions & 1 deletion src/client/displays/sdl.py
Expand Up @@ -368,4 +368,3 @@ def drawRepeated( self, img, pos, repeatx=1, repeaty=1 ):
for y in xrange( 0, repeaty ):
yp = pos[1]+self.getHeight(img)*y
self.screen.blit( img, (xp,yp) )

0 comments on commit 0494fb7

Please sign in to comment.