mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 14:22:13 +00:00
- Fix GCC errors in fb_d3d9.cpp.
SVN r3492 (trunk)
This commit is contained in:
parent
7783aec8a9
commit
0d302269bb
1 changed files with 4 additions and 2 deletions
|
@ -2969,6 +2969,8 @@ void STACK_ARGS D3DFB::DrawTextureV (FTexture *img, double x, double y, uint32 t
|
||||||
float v1 = tex->Box->Bottom;
|
float v1 = tex->Box->Bottom;
|
||||||
double uscale = 1.f / tex->Box->Owner->Width;
|
double uscale = 1.f / tex->Box->Owner->Width;
|
||||||
bool scissoring = false;
|
bool scissoring = false;
|
||||||
|
FBVERTEX *vert;
|
||||||
|
float yoffs;
|
||||||
|
|
||||||
if (parms.flipX)
|
if (parms.flipX)
|
||||||
{
|
{
|
||||||
|
@ -3042,7 +3044,7 @@ void STACK_ARGS D3DFB::DrawTextureV (FTexture *img, double x, double y, uint32 t
|
||||||
quad->NumTris = 2;
|
quad->NumTris = 2;
|
||||||
quad->NumVerts = 4;
|
quad->NumVerts = 4;
|
||||||
|
|
||||||
float yoffs = GatheringWipeScreen ? 0.5f : 0.5f - LBOffset;
|
yoffs = GatheringWipeScreen ? 0.5f : 0.5f - LBOffset;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// Coordinates are truncated to integers, because that's effectively
|
// Coordinates are truncated to integers, because that's effectively
|
||||||
|
@ -3059,7 +3061,7 @@ void STACK_ARGS D3DFB::DrawTextureV (FTexture *img, double x, double y, uint32 t
|
||||||
y1 = y1 - yoffs;
|
y1 = y1 - yoffs;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
FBVERTEX *vert = &VertexData[VertexPos];
|
vert = &VertexData[VertexPos];
|
||||||
|
|
||||||
// Fill the vertex buffer.
|
// Fill the vertex buffer.
|
||||||
vert[0].x = float(x0);
|
vert[0].x = float(x0);
|
||||||
|
|
Loading…
Reference in a new issue