Fixed parameter of Draw_StretchPic2

This commit is contained in:
smallmodel 2023-08-16 00:45:26 +02:00
parent d2737f2b40
commit c1ee0332e3
No known key found for this signature in database
GPG key ID: A96F163ED4891440
2 changed files with 8 additions and 8 deletions

View file

@ -96,7 +96,7 @@ void Draw_StretchPic(float x, float y, float w, float h, float s1, float t1, flo
Draw_StretchPic2
================
*/
void Draw_StretchPic2(float x, float y, float w, float h, float s1, float t1, float s2, float t2, float a1, float sx, float sy, qhandle_t hShader) {
void Draw_StretchPic2(float x, float y, float w, float h, float s1, float t1, float s2, float t2, float sx, float sy, qhandle_t hShader) {
shader_t* shader;
float halfWidth, halfHeight;
float scaledWidth1, scaledHeight1;
@ -130,14 +130,14 @@ void Draw_StretchPic2(float x, float y, float w, float h, float s1, float t1, fl
RB_Texcoord2f(s1, t1);
RB_Vertex3f(x + halfWidth - (scaledWidth2 + -scaledHeight2), y + halfWidth - scaledHeight1 - scaledWidth1, 0);
RB_Texcoord2f(s2, t1);
RB_Vertex3f(scaledWidth2 - -scaledHeight2 + x * halfWidth, scaledWidth1 - scaledHeight1 + y * halfWidth, 0);
RB_Texcoord2f(t2, t1);
RB_Vertex3f(scaledWidth2 - -scaledHeight2 + x + halfWidth, scaledWidth1 - scaledHeight1 + y + halfWidth, 0);
RB_Texcoord2f(s1, t2);
RB_Vertex3f(x+ halfWidth - (scaledWidth2 + scaledHeight2), scaledHeight1 - scaledWidth1 + y * halfWidth, 0);
RB_Texcoord2f(s1, s2);
RB_Vertex3f(x+ halfWidth - (scaledWidth2 + scaledHeight2), scaledHeight1 - scaledWidth1 + y + halfWidth, 0);
RB_Texcoord2f(s2, t2);
RB_Vertex3f(scaledWidth2 - scaledHeight2 + x * halfWidth, scaledWidth1 + scaledHeight1 + y * halfWidth, 0);
RB_Texcoord2f(t2, s2);
RB_Vertex3f(scaledWidth2 - scaledHeight2 + x + halfWidth, scaledWidth1 + scaledHeight1 + y + halfWidth, 0);
RB_StreamEnd();
}

View file

@ -1688,7 +1688,7 @@ void GL_Cull( int cullType );
void Draw_SetColor(const vec4_t rgba);
void Draw_StretchPic(float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader);
void Draw_StretchPic2(float x, float y, float w, float h, float s1, float t1, float s2, float t2, float a1, float sx, float sy, qhandle_t hShader);
void Draw_StretchPic2(float x, float y, float w, float h, float s1, float t1, float s2, float t2, float sx, float sy, qhandle_t hShader);
void Draw_TilePic(float x, float y, float w, float h, qhandle_t hShader);
void Draw_TilePicOffset(float x, float y, float w, float h, qhandle_t hShader, int offsetX, int offsetY);
void Draw_TrianglePic(const vec2_t vPoints[3], const vec2_t vTexCoords[3], qhandle_t hShader);