[units] Always recompute pixels
When asking for the pixels value we should always recompute it. The "pixel_set" guard can be left in place for future use.
This commit is contained in:
parent
7e5f7eb790
commit
ea9bd6761a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user