Permalink
Browse files

Brought up to date with upstream.

  • Loading branch information...
mkeeter committed Sep 15, 2011
1 parent d4b8a01 commit bceccb402862f81680c386ff49f40eef368a51a1
Showing with 0 additions and 18 deletions.
  1. +0 −18 sf.pyx
View
18 sf.pyx
@@ -1348,24 +1348,6 @@ cdef class Image:
self.p_this.Copy(source.p_this[0], dest_x, dest_y,
cpp_source_rect, apply_alpha)
- def copy_screen(self, RenderWindow window, source_rect=None):
- cdef decl.IntRect cpp_source_rect
-
- if source_rect is None:
- self.p_this.CopyScreen(window.p_this[0])
- else:
- if isinstance(source_rect, tuple):
- cpp_source_rect = decl.IntRect(source_rect[0],
- source_rect[1],
- source_rect[2],
- source_rect[3])
- elif isinstance(source_rect, IntRect):
- cpp_source_rect = (<IntRect>source_rect).p_this[0]
- else:
- raise TypeError('source_rect must be tuple or IntRect')
-
- self.p_this.CopyScreen(window.p_this[0], cpp_source_rect)
-
def create_mask_from_color(self, Color color, int alpha=0):
self.p_this.CreateMaskFromColor(color.p_this[0], alpha)

0 comments on commit bceccb4

Please sign in to comment.