diff options
Diffstat (limited to 'src/render/sdl2graphics.cpp')
-rw-r--r-- | src/render/sdl2graphics.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/sdl2graphics.cpp b/src/render/sdl2graphics.cpp index 21aab3779..a8b5515c4 100644 --- a/src/render/sdl2graphics.cpp +++ b/src/render/sdl2graphics.cpp @@ -446,7 +446,7 @@ void SDLGraphics::calcPatternInline(ImageVertexes *restrict const vert, const int dw = (px + iw >= w) ? w - px : iw; const int dstX = px + xOffset; - DoubleRect *const r = new DoubleRect(); + DoubleRect *const r = new DoubleRect; SDL_Rect &dstRect = r->dst; SDL_Rect &srcRect = r->src; srcRect.x = CAST_S32(srcX); @@ -471,7 +471,7 @@ void SDLGraphics::calcPattern(ImageCollection *restrict const vertCol, ImageVertexes *vert = nullptr; if (vertCol->currentImage != image) { - vert = new ImageVertexes(); + vert = new ImageVertexes; vertCol->currentImage = image; vertCol->currentVert = vert; vert->image = image; @@ -518,7 +518,7 @@ void SDLGraphics::calcTileSDL(ImageVertexes *restrict const vert, x += top.xOffset; y += top.yOffset; - DoubleRect *rect = new DoubleRect(); + DoubleRect *rect = new DoubleRect; SDL_Rect &dstRect = rect->dst; SDL_Rect &srcRect = rect->src; @@ -542,7 +542,7 @@ void SDLGraphics::calcTileCollection(ImageCollection *restrict const vertCol, return; if (vertCol->currentImage != image) { - ImageVertexes *const vert = new ImageVertexes(); + ImageVertexes *const vert = new ImageVertexes; vertCol->currentImage = image; vertCol->currentVert = vert; vert->image = image; @@ -612,7 +612,7 @@ void SDLGraphics::calcWindow(ImageCollection *restrict const vertCol, return; if (vertCol->currentImage != image) { - vert = new ImageVertexes(); + vert = new ImageVertexes; vertCol->currentImage = image; vertCol->currentVert = vert; vert->image = image; |