From 3556554a3552ca3ce404b5fd05d341de1ddb7e9d Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 23 Dec 2021 10:40:09 +0900 Subject: [PATCH] sw_engine texmap: fix trivial compiler warnings. Change-Id: I3649d84e83c257df6d51429c52a88a1fc9d6fdd1 warning: suggest braces around initialization of subobject [-Wmissing-braces] --- src/lib/sw_engine/tvgSwRasterTexmap.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/sw_engine/tvgSwRasterTexmap.h b/src/lib/sw_engine/tvgSwRasterTexmap.h index ece14eb..2cf9fb4 100644 --- a/src/lib/sw_engine/tvgSwRasterTexmap.h +++ b/src/lib/sw_engine/tvgSwRasterTexmap.h @@ -572,10 +572,10 @@ static bool _rasterTexmapPolygon(SwSurface* surface, const SwImage* image, const /* Prepare vertices. shift XY coordinates to match the sub-pixeling technique. */ Vertex vertices[4]; - vertices[0] = {{0.0f, 0.0f}, 0.0f, 0.0f}; - vertices[1] = {{float(image->w), 0.0f}, float(image->w), 0.0f}; - vertices[2] = {{float(image->w), float(image->h)}, float(image->w), float(image->h)}; - vertices[3] = {{0.0f, float(image->h)}, 0.0f, float(image->h)}; + vertices[0] = {{0.0f, 0.0f}, {0.0f, 0.0f}}; + vertices[1] = {{float(image->w), 0.0f}, {float(image->w), 0.0f}}; + vertices[2] = {{float(image->w), float(image->h)}, {float(image->w), float(image->h)}}; + vertices[3] = {{0.0f, float(image->h)}, {0.0f, float(image->h)}}; for (int i = 0; i < 4; i++) mathMultiply(&vertices[i].pt, transform); -- 2.7.4