randr: Silence -Wshift-negative-value warnings
rrtransform.c:199:23: warning: shifting a negative signed value is undefined [-Wshift-negative-value,Semantic Issue] rot_cos = F(-1); ^~~~~ rrtransform.c:114:14: note: expanded from macro 'F' ^~~~~~~~~~~~~~ ../render/picture.h:200:24: note: expanded from macro 'IntToxFixed' ^~~~~~~~~~~~~~~~~~~~~~ /opt/X11/include/pixman-1/pixman.h:130:56: note: expanded from macro 'pixman_int_to_fixed' ~~~ ^ Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
9a2a05a9a7
commit
5dc415048e
|
@ -196,7 +196,7 @@ RRTransformCompute(int x,
|
||||||
f_rot_sin = 0;
|
f_rot_sin = 0;
|
||||||
f_rot_dx = width;
|
f_rot_dx = width;
|
||||||
f_rot_dy = height;
|
f_rot_dy = height;
|
||||||
rot_cos = F(-1);
|
rot_cos = F(~0u);
|
||||||
rot_sin = F(0);
|
rot_sin = F(0);
|
||||||
rot_dx = F(width);
|
rot_dx = F(width);
|
||||||
rot_dy = F(height);
|
rot_dy = F(height);
|
||||||
|
@ -207,7 +207,7 @@ RRTransformCompute(int x,
|
||||||
f_rot_dx = 0;
|
f_rot_dx = 0;
|
||||||
f_rot_dy = width;
|
f_rot_dy = width;
|
||||||
rot_cos = F(0);
|
rot_cos = F(0);
|
||||||
rot_sin = F(-1);
|
rot_sin = F(~0u);
|
||||||
rot_dx = F(0);
|
rot_dx = F(0);
|
||||||
rot_dy = F(width);
|
rot_dy = F(width);
|
||||||
break;
|
break;
|
||||||
|
@ -230,7 +230,7 @@ RRTransformCompute(int x,
|
||||||
scale_dy = 0;
|
scale_dy = 0;
|
||||||
if (rotation & RR_Reflect_X) {
|
if (rotation & RR_Reflect_X) {
|
||||||
f_scale_x = -1;
|
f_scale_x = -1;
|
||||||
scale_x = F(-1);
|
scale_x = F(~0u);
|
||||||
if (rotation & (RR_Rotate_0 | RR_Rotate_180)) {
|
if (rotation & (RR_Rotate_0 | RR_Rotate_180)) {
|
||||||
f_scale_dx = width;
|
f_scale_dx = width;
|
||||||
scale_dx = F(width);
|
scale_dx = F(width);
|
||||||
|
@ -242,7 +242,7 @@ RRTransformCompute(int x,
|
||||||
}
|
}
|
||||||
if (rotation & RR_Reflect_Y) {
|
if (rotation & RR_Reflect_Y) {
|
||||||
f_scale_y = -1;
|
f_scale_y = -1;
|
||||||
scale_y = F(-1);
|
scale_y = F(~0u);
|
||||||
if (rotation & (RR_Rotate_0 | RR_Rotate_180)) {
|
if (rotation & (RR_Rotate_0 | RR_Rotate_180)) {
|
||||||
f_scale_dy = height;
|
f_scale_dy = height;
|
||||||
scale_dy = F(height);
|
scale_dy = F(height);
|
||||||
|
|
Loading…
Reference in New Issue