blob: 57d6baa759b86575c25938497432e5df5e8a8fbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ad,v 1.1 2005/08/04 16:11:28 rillig Exp $
Needed for ISO C90 compliance.
--- src/bitmap.c.orig Mon Jun 13 21:17:10 2005
+++ src/bitmap.c Thu Aug 4 18:05:51 2005
@@ -284,6 +284,7 @@ GdipCreateBitmapFromScan0 (int width, in
int bytes_needed = header_size + palette_entries * sizeof(ARGB);
int i;
+ const unsigned int *default_palette;
result->image.palette = malloc (bytes_needed);
@@ -292,8 +293,6 @@ GdipCreateBitmapFromScan0 (int width, in
result->image.palette->Flags = 0;
result->image.palette->Count = palette_entries;
-
- const unsigned int *default_palette;
switch (format)
{
|