Fixed indentation
This commit is contained in:
parent
393dc41cc7
commit
c156a8efeb
1 changed files with 4 additions and 4 deletions
|
@ -2435,22 +2435,22 @@ void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, V
|
|||
|
||||
// Bottom-left corner for texture and quad
|
||||
if (flipX) rlTexCoord2f((sourceRec.x + sourceRec.width)/width, sourceRec.y/height);
|
||||
else rlTexCoord2f(sourceRec.x/width, sourceRec.y/height);
|
||||
else rlTexCoord2f(sourceRec.x/width, sourceRec.y/height);
|
||||
rlVertex2f(0.0f, 0.0f);
|
||||
|
||||
// Bottom-right corner for texture and quad
|
||||
if (flipX) rlTexCoord2f((sourceRec.x + sourceRec.width)/width, (sourceRec.y + sourceRec.height)/height);
|
||||
else rlTexCoord2f(sourceRec.x/width, (sourceRec.y + sourceRec.height)/height);
|
||||
else rlTexCoord2f(sourceRec.x/width, (sourceRec.y + sourceRec.height)/height);
|
||||
rlVertex2f(0.0f, destRec.height);
|
||||
|
||||
// Top-right corner for texture and quad
|
||||
if (flipX) rlTexCoord2f(sourceRec.x/width, (sourceRec.y + sourceRec.height)/height);
|
||||
else rlTexCoord2f((sourceRec.x + sourceRec.width)/width, (sourceRec.y + sourceRec.height)/height);
|
||||
else rlTexCoord2f((sourceRec.x + sourceRec.width)/width, (sourceRec.y + sourceRec.height)/height);
|
||||
rlVertex2f(destRec.width, destRec.height);
|
||||
|
||||
// Top-left corner for texture and quad
|
||||
if (flipX) rlTexCoord2f(sourceRec.x/width, sourceRec.y/height);
|
||||
else rlTexCoord2f((sourceRec.x + sourceRec.width)/width, sourceRec.y/height);
|
||||
else rlTexCoord2f((sourceRec.x + sourceRec.width)/width, sourceRec.y/height);
|
||||
rlVertex2f(destRec.width, 0.0f);
|
||||
rlEnd();
|
||||
rlPopMatrix();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue