mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
Replaced ClutterFixed constants in color_{darken,lighten} with float
Bug 1463 - clutter_color_lighten(darken) unexpected because of ClutterFixed=>float These two functions contained ClutterFixed constants represented as integers which are no longer valid since the cogl-float branch merge. They are now converted to ClutterFixed from float constants using CLUTTER_FLOAT_TO_FIXED (which is now a no-op). Thanks to Zhang Wei for reporting.
This commit is contained in:
parent
f4222c3cfc
commit
97431b4670
@ -112,8 +112,7 @@ void
|
||||
clutter_color_lighten (const ClutterColor *src,
|
||||
ClutterColor *dest)
|
||||
{
|
||||
/* 0x14ccd is ClutterFixed for 1.3 */
|
||||
clutter_color_shadex (src, dest, 0x14ccd);
|
||||
clutter_color_shadex (src, dest, CLUTTER_FLOAT_TO_FIXED (1.3));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -128,8 +127,7 @@ void
|
||||
clutter_color_darken (const ClutterColor *src,
|
||||
ClutterColor *dest)
|
||||
{
|
||||
/* 0xb333 is ClutterFixed for 0.7 */
|
||||
clutter_color_shadex (src, dest, 0xb333);
|
||||
clutter_color_shadex (src, dest, CLUTTER_FLOAT_TO_FIXED (0.7));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user