blob: 5666195f2e28f741d07277a6ec9bc907b905fd41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/texture.cpp_old 2004-10-19 01:30:14.744127000 +0900
+++ src/texture.cpp 2004-10-19 01:30:34.948055536 +0900
@@ -108,7 +108,7 @@
SDL_LockSurface(img);
// Flip the surface pixels upside down
- Uint8 *line = new (Uint8)[img->w*img->format->BytesPerPixel];
+ Uint8 *line = new Uint8[img->w*img->format->BytesPerPixel];
if(!line)
error_msg("Unable to flip surface %s:\nOut of memory!\n");
@@ -207,7 +207,7 @@
SDL_LockSurface(img);
// Flip the surface pixels upside down
- Uint8 *line = new (Uint8)[img->w*img->format->BytesPerPixel];
+ Uint8 *line = new Uint8[img->w*img->format->BytesPerPixel];
if(!line)
error_msg("Unable to flip surface %s:\nOut of memory!\n");
|