From 5330964a7a622fe6d8b54a0982c336dd2456d9f4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 7 Jun 2020 15:07:32 +0200 Subject: [PATCH] - removed redundant initializers. --- source/common/2d/v_2ddrawer.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/source/common/2d/v_2ddrawer.cpp b/source/common/2d/v_2ddrawer.cpp index 6553d3187..a7f6b2d7b 100644 --- a/source/common/2d/v_2ddrawer.cpp +++ b/source/common/2d/v_2ddrawer.cpp @@ -408,7 +408,7 @@ void F2DDrawer::AddTexture(FGameTexture* img, DrawParms& parms) double u1, v1, u2, v2; PalEntry vertexcolor; - RenderCommand dg = {}; + RenderCommand dg; dg.mType = DrawTypeTriangles; dg.mVertCount = 4; @@ -487,7 +487,7 @@ void F2DDrawer::AddShape(FGameTexture* img, DShape2D* shape, DrawParms& parms) PalEntry vertexcolor; - RenderCommand dg = {}; + RenderCommand dg; dg.mType = DrawTypeTriangles; dg.mVertCount = shape->mVertices.Size(); @@ -560,7 +560,7 @@ void F2DDrawer::AddPoly(FGameTexture *texture, FVector2 *points, int npoints, DAngle rotation, const FColormap &colormap, PalEntry flatcolor, double fadelevel, uint32_t *indices, size_t indexcount) { - RenderCommand poly = {}; + RenderCommand poly; poly.mType = DrawTypeTriangles; poly.mTexture = texture; @@ -636,7 +636,7 @@ void F2DDrawer::AddPoly(FGameTexture *texture, FVector2 *points, int npoints, void F2DDrawer::AddPoly(FGameTexture* img, FVector4* vt, size_t vtcount, unsigned int* ind, size_t idxcount, int translation, PalEntry color, FRenderStyle style, int clipx1, int clipy1, int clipx2, int clipy2) { - RenderCommand dg = {}; + RenderCommand dg; int method = 0; dg.mType = DrawTypeTriangles; @@ -698,7 +698,7 @@ void F2DDrawer::AddFlatFill(int left, int top, int right, int bottom, FGameTextu { float fU1, fU2, fV1, fV2; - RenderCommand dg = {}; + RenderCommand dg; dg.mType = DrawTypeTriangles; dg.mRenderStyle = DefaultRenderStyle(); @@ -817,7 +817,7 @@ void F2DDrawer::AddFlatFill(int left, int top, int right, int bottom, FGameTextu void F2DDrawer::AddColorOnlyQuad(int x1, int y1, int w, int h, PalEntry color, FRenderStyle *style, bool prepend) { - RenderCommand dg = {}; + RenderCommand dg; dg.mType = DrawTypeTriangles; dg.mVertCount = 4; @@ -856,7 +856,7 @@ void F2DDrawer::AddLine(double x1, double y1, double x2, double y2, int clipx1, PalEntry p = (PalEntry)color; p.a = alpha; - RenderCommand dg = {}; + RenderCommand dg; if (clipx1 > 0 || clipy1 > 0 || clipx2 < GetWidth()- 1 || clipy2 < GetHeight() - 1) { @@ -900,7 +900,7 @@ void F2DDrawer::AddThickLine(int x1, int y1, int x2, int y2, double thickness, u DVector2 corner2 = point1 + perp; DVector2 corner3 = point1 - perp; - RenderCommand dg = {}; + RenderCommand dg; dg.mType = DrawTypeTriangles; dg.mVertCount = 4; @@ -928,7 +928,7 @@ void F2DDrawer::AddPixel(int x1, int y1, uint32_t color) PalEntry p = (PalEntry)color; p.a = 255; - RenderCommand dg = {}; + RenderCommand dg; dg.mType = DrawTypePoints; dg.mRenderStyle = LegacyRenderStyles[STYLE_Translucent];