[gnome-games] ui: Clean up GameThumbnail.draw_cover()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] ui: Clean up GameThumbnail.draw_cover()
- Date: Wed, 13 Jul 2016 07:25:56 +0000 (UTC)
commit d71667a92cccbdb947c1e058d5e28f9db2b245db
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Jul 12 21:47:12 2016 +0200
ui: Clean up GameThumbnail.draw_cover()
Remove useless lines from this method.
src/ui/game-thumbnail.vala | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/ui/game-thumbnail.vala b/src/ui/game-thumbnail.vala
index 12fa05d..d967c21 100644
--- a/src/ui/game-thumbnail.vala
+++ b/src/ui/game-thumbnail.vala
@@ -117,17 +117,11 @@ private class Games.GameThumbnail: Gtk.DrawingArea {
if (pixbuf == null)
return false;
- double width = pixbuf.width + COVER_MARGIN * 2;
- double height = pixbuf.height + COVER_MARGIN * 2;
- double offset_x = (context.width - width) / 2.0;
- double offset_y = (context.height - height) / 2.0;
-
context.cr.set_source_rgb (0, 0, 0);
rounded_rectangle (context.cr, 0.5, 0.5, context.width - 1, context.height - 1, FRAME_RADIUS);
context.cr.fill ();
draw_pixbuf (context, pixbuf);
draw_border (context);
-// context.style.render_frame (context.cr, offset_x, offset_y, width, height);
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]