[gnome-games] quadrapassel: Adjust the message font
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] quadrapassel: Adjust the message font
- Date: Thu, 9 Dec 2010 22:52:56 +0000 (UTC)
commit 4d9e600024f609fae01ea184aee972e325b30fc5
Author: Andrew Higginson <rugby471 gmail com>
Date: Thu Dec 9 07:36:42 2010 +0000
quadrapassel: Adjust the message font
GNOME bug #634810
quadrapassel/blockops.cpp | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/quadrapassel/blockops.cpp b/quadrapassel/blockops.cpp
index 411be19..11f4e6a 100644
--- a/quadrapassel/blockops.cpp
+++ b/quadrapassel/blockops.cpp
@@ -28,7 +28,7 @@
#include <clutter-gtk/clutter-gtk.h>
#include "tetris.h"
-#define FONT "Sans Bold"
+#define FONT "Sans"
gboolean
BlockOps::move_end (ClutterTimeline *time, BlockOps *f)
@@ -805,19 +805,21 @@ BlockOps::drawMessage()
g_object_unref (dummy_layout);
// desired height : lh = widget width * 0.9 : lw
- pango_font_description_set_absolute_size (desc, ((float) lh / lw) * PANGO_SCALE * width * 0.8);
+ pango_font_description_set_absolute_size (desc, ((float) lh / lw) * PANGO_SCALE * width * 0.7);
pango_layout_set_font_description (layout, desc);
pango_font_description_free (desc);
pango_layout_get_size (layout, &lw, &lh);
cairo_move_to (cr, -((double)lw / PANGO_SCALE) / 2, -((double)lh / PANGO_SCALE) / 2);
pango_cairo_layout_path (cr, layout);
- cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
- cairo_fill_preserve (cr);
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
+ cairo_set_source_rgb (cr, 0.333333333333, 0.341176470588, 0.32549019607);
+
/* A linewidth of 2 pixels at the default size. */
- cairo_set_line_width (cr, width/220.0);
- cairo_stroke (cr);
+ cairo_set_line_width (cr, width/100.0);
+ cairo_stroke_preserve (cr);
+
+ cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
+ cairo_fill (cr);
g_object_unref(layout);
cairo_destroy (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]