Skip to content

Commit d645561

Browse files
committed
Update render.c
1 parent b49cbb6 commit d645561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src_c/render.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ image_init(pgImageObject *self, PyObject *args, PyObject *kwargs)
14841484
&texture_or_imageobj, &srcrectobj)) {
14851485
return -1;
14861486
}
1487-
if (pgTexture_Check(texture_or_imageobj)) {
1487+
/*if (pgTexture_Check(texture_or_imageobj)) {
14881488
textureprt = (pgTextureObject *)texture_or_imageobj;
14891489
temp = (SDL_Rect){0, 0, textureprt->width, textureprt->height};
14901490
}
@@ -1529,7 +1529,7 @@ image_init(pgImageObject *self, PyObject *args, PyObject *kwargs)
15291529
self->flip_x = SDL_FALSE;
15301530
self->flip_y = SDL_FALSE;
15311531
self->alpha = 255;
1532-
self->color = (pgColorObject *)pgColor_NewLength(rgba, 4);
1532+
self->color = (pgColorObject *)pgColor_NewLength(rgba, 4);*/
15331533
return 0;
15341534
}
15351535

0 commit comments

Comments
 (0)