mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 14:50:06 +00:00
gtk/gtkwin32theme.c: Remove C99ism
This commit is contained in:
parent
129beb40c5
commit
f32d8be6a5
@ -214,6 +214,7 @@ _gtk_win32_theme_part_create_surface (HTHEME theme,
|
|||||||
cairo_t *cr;
|
cairo_t *cr;
|
||||||
int x_offs;
|
int x_offs;
|
||||||
int y_offs;
|
int y_offs;
|
||||||
|
int i, j;
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
gboolean has_alpha;
|
gboolean has_alpha;
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
@ -274,9 +275,9 @@ _gtk_win32_theme_part_create_surface (HTHEME theme,
|
|||||||
guint32 *data = (guint32 *)cairo_image_surface_get_data (img);
|
guint32 *data = (guint32 *)cairo_image_surface_get_data (img);
|
||||||
GdiFlush ();
|
GdiFlush ();
|
||||||
|
|
||||||
for (int i = 0; i < width; i++)
|
for (i = 0; i < width; i++)
|
||||||
{
|
{
|
||||||
for (int j = 0; j < height; j++)
|
for (j = 0; j < height; j++)
|
||||||
{
|
{
|
||||||
if (data[i+j*width] != 0)
|
if (data[i+j*width] != 0)
|
||||||
data[i+j*width] |= 0xff000000;
|
data[i+j*width] |= 0xff000000;
|
||||||
|
Loading…
Reference in New Issue
Block a user