Skip to content

Commit

Permalink
Fix a couple more tostring instances that are only called on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsitton committed Oct 18, 2015
1 parent 1bb2bcf commit 98e00af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fofix/core/Video.py
Expand Up @@ -115,10 +115,10 @@ def setMode(self, resolution, fullscreen = False, flags = pygame.OPENGL | pygame
# channel to fill up that space - the fourth channel is ignored) and the
# second is a 1-bit alpha mask. For some reason, we need to invert the
# alpha channel before turning it into the mask.
bigIconColorData = bigIcon.tostring()
bigIconMaskData = bigIcon.split()[3].point(lambda p: 255 - p).convert('1').tostring()
smallIconColorData = smallIcon.tostring()
smallIconMaskData = smallIcon.split()[3].point(lambda p: 255 - p).convert('1').tostring()
bigIconColorData = bigIcon.tobytes()
bigIconMaskData = bigIcon.split()[3].point(lambda p: 255 - p).convert('1').tobytes()
smallIconColorData = smallIcon.tobytes()
smallIconMaskData = smallIcon.split()[3].point(lambda p: 255 - p).convert('1').tobytes()

# Put together icon resource structures - a header, then the pixel data,
# then the alpha mask. See documentation for the BITMAPINFOHEADER
Expand Down

0 comments on commit 98e00af

Please sign in to comment.