Backed out changeset e8f93c2ebda3 - it didn't actually do anything useful
--HG-- extra : rebase_source : d0465ebf6702a1152520fa9a6bfc2e10aac16711
This commit is contained in:
parent
28264ed469
commit
62ec6bf81c
2 changed files with 29 additions and 37 deletions
|
@ -1250,26 +1250,22 @@ GL_RenderCopyEx(SDL_Renderer * renderer, SDL_Texture * texture,
|
|||
centerx = center->x;
|
||||
centery = center->y;
|
||||
|
||||
if ((flip & SDL_FLIP_VERTICAL) && (flip & SDL_FLIP_HORIZONTAL)) {
|
||||
miny = dstrect->h - centery;
|
||||
maxy = -centery;
|
||||
minx = dstrect->w - centerx;
|
||||
if (flip & SDL_FLIP_HORIZONTAL) {
|
||||
minx = dstrect->w - centerx;
|
||||
maxx = -centerx;
|
||||
} else if (flip & SDL_FLIP_HORIZONTAL) {
|
||||
miny = -centery;
|
||||
maxy = dstrect->h - centery;
|
||||
minx = dstrect->w - centerx;
|
||||
maxx = -centerx;
|
||||
} else if (flip & SDL_FLIP_VERTICAL) {
|
||||
miny = dstrect->h - centery;
|
||||
}
|
||||
else {
|
||||
minx = -centerx;
|
||||
maxx = dstrect->w - centerx;
|
||||
}
|
||||
|
||||
if (flip & SDL_FLIP_VERTICAL) {
|
||||
miny = dstrect->h - centery;
|
||||
maxy = -centery;
|
||||
minx = -centerx;
|
||||
maxx = dstrect->w - centerx;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
miny = -centery;
|
||||
maxy = dstrect->h - centery;
|
||||
minx = -centerx;
|
||||
maxx = dstrect->w - centerx;
|
||||
maxy = dstrect->h - centery;
|
||||
}
|
||||
|
||||
minu = (GLfloat) srcrect->x / texture->w;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue