From f7d1e50db449506be8328a763cf9b3deb65f68ad Mon Sep 17 00:00:00 2001 From: Pawel Kolodziejski Date: Sun, 20 Mar 2005 18:43:56 +0000 Subject: [PATCH] correction --- driver_gl.cpp | 2 +- driver_tinygl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/driver_gl.cpp b/driver_gl.cpp index f7d43a85145..1ecb7588c41 100644 --- a/driver_gl.cpp +++ b/driver_gl.cpp @@ -544,7 +544,7 @@ void DriverGL::drawEmergString(int x, int y, const char *text, const Color &fgCo } Driver::TextObjectHandle *DriverGL::createTextBitmap(uint8 *data, int width, int height, const Color &fgColor) { - TextObjectHandle *handle = new TextObjectHandle(); + TextObjectHandle *handle = new TextObjectHandle; handle->width = width; handle->height = height; handle->bitmapData = NULL; diff --git a/driver_tinygl.cpp b/driver_tinygl.cpp index 431ce7edf2f..b5f88dd5456 100644 --- a/driver_tinygl.cpp +++ b/driver_tinygl.cpp @@ -399,7 +399,7 @@ void DriverTinyGL::drawEmergString(int /*x*/, int /*y*/, const char * /*text*/, } Driver::TextObjectHandle *DriverTinyGL::createTextBitmap(uint8 *data, int width, int height, const Color &fgColor) { - TextObjectHandle *handle = new TextObjectHandle(); + TextObjectHandle *handle = new TextObjectHandle; handle->width = width; handle->height = height; handle->numTex = 0;