[gnome-games] glchess: silence a warning
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] glchess: silence a warning
- Date: Wed, 11 Jan 2012 23:04:10 +0000 (UTC)
commit 8318b172ffdd27ef4383ef33be6a55fbdcf3495c
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Thu Jan 12 00:04:05 2012 +0100
glchess: silence a warning
glchess/src/glchess.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/glchess/src/glchess.vala b/glchess/src/glchess.vala
index 5eb6fdf..97dfd35 100644
--- a/glchess/src/glchess.vala
+++ b/glchess/src/glchess.vala
@@ -897,8 +897,8 @@ public class Application : Gtk.Application
[CCode (cname = "G_MODULE_EXPORT white_time_draw_cb", instance_pos = -1)]
public bool white_time_draw_cb (Gtk.Widget widget, Cairo.Context c)
{
- const double fg[3] = { 0.0, 0.0, 0.0 };
- const double bg[3] = { 1.0, 1.0, 1.0 };
+ double fg[3] = { 0.0, 0.0, 0.0 };
+ double bg[3] = { 1.0, 1.0, 1.0 };
draw_time (widget, c, make_clock_text (game.clock, Color.WHITE), fg, bg);
return false;
@@ -907,8 +907,8 @@ public class Application : Gtk.Application
[CCode (cname = "G_MODULE_EXPORT black_time_draw_cb", instance_pos = -1)]
public bool black_time_draw_cb (Gtk.Widget widget, Cairo.Context c)
{
- const double fg[3] = { 1.0, 1.0, 1.0 };
- const double bg[3] = { 0.0, 0.0, 0.0 };
+ double fg[3] = { 1.0, 1.0, 1.0 };
+ double bg[3] = { 0.0, 0.0, 0.0 };
draw_time (widget, c, make_clock_text (game.clock, Color.BLACK), fg, bg);
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]