[gthumb] fixed image transparency when using a dark blackground
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed image transparency when using a dark blackground
- Date: Thu, 2 Aug 2012 12:34:39 +0000 (UTC)
commit b7ae16efd8daa73acfc94732c20f97e75135f1e1
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue May 15 18:40:05 2012 +0200
fixed image transparency when using a dark blackground
gthumb/gth-image-viewer.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-image-viewer.c b/gthumb/gth-image-viewer.c
index 13ff127..4ab7859 100644
--- a/gthumb/gth-image-viewer.c
+++ b/gthumb/gth-image-viewer.c
@@ -40,6 +40,7 @@
#define MINIMUM_DELAY 10 /* When an animation frame has a 0 milli seconds
* delay use this delay instead. */
#define STEP_INCREMENT 20.0 /* Scroll increment. */
+#define BLACK_VALUE 0.2
G_DEFINE_TYPE_WITH_CODE (GthImageViewer,
@@ -2597,7 +2598,7 @@ gth_image_viewer_paint_background (GthImageViewer *self,
int rx, ry, rw, rh;
if (self->priv->black_bg) {
- cairo_set_source_rgb (cr, 0.2, 0.2, 0.2);
+ cairo_set_source_rgb (cr, BLACK_VALUE, BLACK_VALUE, BLACK_VALUE);
}
else {
GdkRGBA color;
@@ -2716,7 +2717,7 @@ gth_image_viewer_paint_background (GthImageViewer *self,
if ((self->priv->transp_type == GTH_TRANSP_TYPE_BLACK)
|| ((self->priv->transp_type == GTH_TRANSP_TYPE_NONE) && self->priv->black_bg))
{
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
+ cairo_set_source_rgb (cr, BLACK_VALUE, BLACK_VALUE, BLACK_VALUE);
cairo_rectangle (cr,
self->image_area.x + 0.5,
self->image_area.y + 0.5,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]