[ekiga] Fixed warnings in the pixops code
- From: Julien Puydt <jpuydt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [ekiga] Fixed warnings in the pixops code
- Date: Thu, 10 Sep 2009 08:45:47 +0000 (UTC)
commit 3dea89594a585ebfe22966811688b07308d40e16
Author: Julien Puydt <jpuydt gnome org>
Date: Thu Sep 10 08:52:44 2009 +0200
Fixed warnings in the pixops code
I was fed up with those warnings... I just hope I took a
small enough value or we will hit bugs.
lib/pixops/pixops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lib/pixops/pixops.c b/lib/pixops/pixops.c
index 6e016ef..caf50a9 100644
--- a/lib/pixops/pixops.c
+++ b/lib/pixops/pixops.c
@@ -1545,7 +1545,7 @@ void
g_return_if_fail (!(dest_channels == 3 && dest_has_alpha));
g_return_if_fail (!(src_channels == 3 && src_has_alpha));
- if (scale_x == 0 || scale_y == 0)
+ if (scale_x <= 0.01 || scale_y <= 0.01)
return;
if (!src_has_alpha && overall_alpha == 255)
@@ -1642,7 +1642,7 @@ void
g_return_if_fail (!(dest_channels == 3 && dest_has_alpha));
g_return_if_fail (!(src_channels == 3 && src_has_alpha));
- if (scale_x == 0 || scale_y == 0)
+ if (scale_x <= 0.01 || scale_y <= 0.01)
return;
if (!src_has_alpha && overall_alpha == 255)
@@ -1719,7 +1719,7 @@ void
g_return_if_fail (!(src_channels == 3 && src_has_alpha));
g_return_if_fail (!(src_has_alpha && !dest_has_alpha));
- if (scale_x == 0.0 || scale_y == 0.0)
+ if (scale_x <= 0.01 || scale_y <= 0.01)
return;
if (interp_type == PIXOPS_INTERP_NEAREST)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]