textcanvas: remove uneeded transform_mat

This commit is contained in:
Mathieu Virbel 2010-11-04 00:05:25 -04:00
parent 1ebc890042
commit 3b7560b290
1 changed files with 1 additions and 3 deletions

View File

@ -2,15 +2,13 @@ import kivy
from kivy.base import runTouchApp
from kivy.core.window import Window
from kivy.core.image import Image
from kivy.graphics import Canvas, Rectangle, BorderRectangle
from kivy.lib.transformations import clip_matrix
from kivy.graphics import Canvas, Rectangle, BorderRectangle, GraphicContext
img = Image('examples/test.png')
c = Canvas()
with c:
c.context.set('color', (1,1,1,1))
c.context.set('projection_mat', clip_matrix(0,Window.width,0,Window.height,-1,1))
BorderRectangle(size=(100, 100), texture=img.texture)