Backed out changeset 6c59f7c8ec17 - it didn't actually do anything useful

This commit is contained in:
Sam Lantinga 2013-11-14 21:39:54 -08:00
parent 346ebbb47e
commit ef97aab9cf
2 changed files with 29 additions and 37 deletions

View File

@ -1635,26 +1635,22 @@ D3D_RenderCopyEx(SDL_Renderer * renderer, SDL_Texture * texture,
centerx = center->x; centerx = center->x;
centery = center->y; centery = center->y;
if ((flip & SDL_FLIP_VERTICAL) && (flip & SDL_FLIP_HORIZONTAL)) { if (flip & SDL_FLIP_HORIZONTAL) {
miny = dstrect->h - centery; minx = dstrect->w - centerx - 0.5f;
maxy = -centery; maxx = -centerx - 0.5f;
minx = dstrect->w - centerx; }
maxx = -centerx; else {
} else if (flip & SDL_FLIP_HORIZONTAL) { minx = -centerx - 0.5f;
miny = -centery; maxx = dstrect->w - centerx - 0.5f;
maxy = dstrect->h - centery; }
minx = dstrect->w - centerx;
maxx = -centerx; if (flip & SDL_FLIP_VERTICAL) {
} else if (flip & SDL_FLIP_VERTICAL) { miny = dstrect->h - centery - 0.5f;
miny = dstrect->h - centery; maxy = -centery - 0.5f;
maxy = -centery; }
minx = -centerx; else {
maxx = dstrect->w - centerx; miny = -centery - 0.5f;
} else { maxy = dstrect->h - centery - 0.5f;
miny = -centery;
maxy = dstrect->h - centery;
minx = -centerx;
maxx = dstrect->w - centerx;
} }
minu = (float) srcrect->x / texture->w; minu = (float) srcrect->x / texture->w;

View File

@ -1250,26 +1250,22 @@ GL_RenderCopyEx(SDL_Renderer * renderer, SDL_Texture * texture,
centerx = center->x; centerx = center->x;
centery = center->y; centery = center->y;
if ((flip & SDL_FLIP_VERTICAL) && (flip & SDL_FLIP_HORIZONTAL)) { if (flip & SDL_FLIP_HORIZONTAL) {
miny = dstrect->h - centery; minx = dstrect->w - centerx;
maxy = -centery;
minx = dstrect->w - centerx;
maxx = -centerx; maxx = -centerx;
} else if (flip & SDL_FLIP_HORIZONTAL) { }
miny = -centery; else {
maxy = dstrect->h - centery; minx = -centerx;
minx = dstrect->w - centerx; maxx = dstrect->w - centerx;
maxx = -centerx; }
} else if (flip & SDL_FLIP_VERTICAL) {
miny = dstrect->h - centery; if (flip & SDL_FLIP_VERTICAL) {
miny = dstrect->h - centery;
maxy = -centery; maxy = -centery;
minx = -centerx; }
maxx = dstrect->w - centerx; else {
} else {
miny = -centery; miny = -centery;
maxy = dstrect->h - centery; maxy = dstrect->h - centery;
minx = -centerx;
maxx = dstrect->w - centerx;
} }
minu = (GLfloat) srcrect->x / texture->w; minu = (GLfloat) srcrect->x / texture->w;