Skip to content
Snippets Groups Projects
Commit a74b4742 authored by pippin's avatar pippin Committed by moon2
Browse files

ctx: revert texture transform workaround

parent e3b64906
Branches
Tags
1 merge request!227correctly initialize display with orientation
Pipeline #7353 passed
...@@ -53640,7 +53640,7 @@ ctx_draw_texture_clipped (Ctx *ctx, const char *eid, ...@@ -53640,7 +53640,7 @@ ctx_draw_texture_clipped (Ctx *ctx, const char *eid,
{ {
ctx_rectangle (ctx, x, y, width, height); ctx_rectangle (ctx, x, y, width, height);
ctx_save (ctx); ctx_save (ctx);
ctx_texture (ctx, eid, -x, -y);// / ctx_texture (ctx, eid, x, y);
ctx_scale (ctx, (width/tex_width), (height/tex_height)); ctx_scale (ctx, (width/tex_width), (height/tex_height));
ctx_fill (ctx); ctx_fill (ctx);
ctx_restore (ctx); ctx_restore (ctx);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment