summaryrefslogtreecommitdiff
path: root/src/render/sdl2softwaregraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/sdl2softwaregraphics.cpp')
-rw-r--r--src/render/sdl2softwaregraphics.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/sdl2softwaregraphics.cpp b/src/render/sdl2softwaregraphics.cpp
index 91e3ce7a4..789ec413b 100644
--- a/src/render/sdl2softwaregraphics.cpp
+++ b/src/render/sdl2softwaregraphics.cpp
@@ -645,7 +645,7 @@ void SDL2SoftwareGraphics::calcPatternInline(ImageVertexes *
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 &srcRect = r->src;
srcRect.x = CAST_S16(srcX);
srcRect.y = CAST_S16(srcY);
@@ -678,7 +678,7 @@ void SDL2SoftwareGraphics::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;
@@ -721,7 +721,7 @@ void SDL2SoftwareGraphics::calcTileSDL(ImageVertexes *restrict const vert,
const ClipRect &top = mClipStack.top();
const SDL_Rect &bounds = image->mBounds;
- DoubleRect *rect = new DoubleRect();
+ DoubleRect *rect = new DoubleRect;
rect->src.x = CAST_S16(bounds.x);
rect->src.y = CAST_S16(bounds.y);
rect->src.w = CAST_U16(bounds.w);
@@ -749,7 +749,7 @@ void SDL2SoftwareGraphics::calcTileCollection(ImageCollection *
return;
if (vertCol->currentImage != image)
{
- ImageVertexes *const vert = new ImageVertexes();
+ ImageVertexes *const vert = new ImageVertexes;
vertCol->currentImage = image;
vertCol->currentVert = vert;
vert->image = image;
@@ -820,7 +820,7 @@ void SDL2SoftwareGraphics::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;