mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
Reposition variable declarations to avoid C99.
This commit is contained in:
parent
ab88c0a888
commit
584eca5eee
@ -1914,9 +1914,10 @@ cogl_set_source (CoglHandle material_handle)
|
|||||||
void
|
void
|
||||||
cogl_set_source_texture (CoglHandle texture_handle)
|
cogl_set_source_texture (CoglHandle texture_handle)
|
||||||
{
|
{
|
||||||
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
|
|
||||||
CoglColor white;
|
CoglColor white;
|
||||||
|
|
||||||
|
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
|
||||||
|
|
||||||
g_return_if_fail (texture_handle != COGL_INVALID_HANDLE);
|
g_return_if_fail (texture_handle != COGL_INVALID_HANDLE);
|
||||||
|
|
||||||
cogl_material_set_layer (ctx->default_material, 0, texture_handle);
|
cogl_material_set_layer (ctx->default_material, 0, texture_handle);
|
||||||
|
@ -88,9 +88,11 @@ cogl_matrix_rotate (CoglMatrix *matrix,
|
|||||||
{
|
{
|
||||||
CoglMatrix rotation;
|
CoglMatrix rotation;
|
||||||
CoglMatrix result;
|
CoglMatrix result;
|
||||||
|
float c, s;
|
||||||
|
|
||||||
angle *= G_PI / 180.0f;
|
angle *= G_PI / 180.0f;
|
||||||
float c = cosf (angle);
|
c = cosf (angle);
|
||||||
float s = sinf (angle);
|
s = sinf (angle);
|
||||||
|
|
||||||
rotation.xx = x * x * (1.0f - c) + c;
|
rotation.xx = x * x * (1.0f - c) + c;
|
||||||
rotation.yx = y * x * (1.0f - c) + z * s;
|
rotation.yx = y * x * (1.0f - c) + z * s;
|
||||||
|
Loading…
Reference in New Issue
Block a user