projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e5f7eb
)
[units] Always recompute pixels
author
Emmanuele Bassi
<ebassi@linux.intel.com>
Sat, 6 Jun 2009 13:39:21 +0000
(14:39 +0100)
committer
Emmanuele Bassi
<ebassi@linux.intel.com>
Sat, 6 Jun 2009 14:59:45 +0000
(15:59 +0100)
When asking for the pixels value we should always recompute it.
The "pixel_set" guard can be left in place for future use.
clutter/clutter-units.c
patch
|
blob
|
history
diff --git
a/clutter/clutter-units.c
b/clutter/clutter-units.c
index
0132fed
..
34ca896
100644
(file)
--- a/
clutter/clutter-units.c
+++ b/
clutter/clutter-units.c
@@
-328,9
+328,6
@@
clutter_units_to_pixels (ClutterUnits *units)
{
g_return_val_if_fail (units != NULL, 0.0);
- if (units->pixels_set)
- return units->pixels;
-
switch (units->unit_type)
{
case CLUTTER_UNIT_MM: