1730a1731,1741 > if (!verts) { > return -1; > } > > cmd->data.draw.count = 1; > > minx = -center->x; > maxx = dstrect->w - center->x; > miny = -center->y; > maxy = dstrect->h - center->y; > 1732,1734d1742 < minu = (float) srcrect->x / texture->w; < maxu = (float) (srcrect->x + srcrect->w) / texture->w; < } else { 1736a1745,1747 > } else { > minu = (float) srcrect->x / texture->w; > maxu = (float) (srcrect->x + srcrect->w) / texture->w; 1740,1742d1750 < minv = (float) srcrect->y / texture->h; < maxv = (float) (srcrect->y + srcrect->h) / texture->h; < } else { 1744a1753,1755 > } else { > minv = (float) srcrect->y / texture->h; > maxv = (float) (srcrect->y + srcrect->h) / texture->h; 1747,1750d1757 < minx = -center->x; < maxx = dstrect->w - center->x; < miny = -center->y; < maxy = dstrect->h - center->y; 1752d1758 < cmd->data.draw.count = 1; 1757,1758d1762 < verts->tex.x = minu; < verts->tex.y = minv; 1762a1767,1768 > verts->tex.x = minu; > verts->tex.y = minv; 1768,1769d1773 < verts->tex.x = minu; < verts->tex.y = maxv; 1773a1778,1779 > verts->tex.x = minu; > verts->tex.y = maxv; 1779,1780d1784 < verts->tex.x = maxu; < verts->tex.y = minv; 1784a1789,1790 > verts->tex.x = maxu; > verts->tex.y = minv; 1790,1791d1795 < verts->tex.x = maxu; < verts->tex.y = maxv; 1795a1800,1801 > verts->tex.x = maxu; > verts->tex.y = maxv; 1798,1802c1804,1806 < verts->pos.x = dstrect->x + center->x; /* X translation */ < verts->pos.y = dstrect->y + center->y; /* Y translation */ < verts->pos.z = (float)(M_PI * (float) angle / 180.0f); /* rotation */ < verts->tex.x = 0.0f; < verts->tex.y = 0.0f; --- > verts->pos.x = dstrect->x + center->x; // X translation > verts->pos.y = dstrect->y + center->y; // Y translation > verts->pos.z = (float)(M_PI * (float) angle / 180.0f); // rotation 1806a1811,1812 > verts->tex.x = 0.0f; > verts->tex.y = 0.0f;