X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fexample%2Ffilledrect.cpp;h=ca5b988f87c04a980783fd0142b147b4d4a7b281;hb=003ec710291bf258b8ce357edc15804347f71cb8;hp=b826588fc2d7338ea1e2001902ff25dc8ca29106;hpb=1fa460ffee65518b7fce0053616798fb0070deba;p=synfig.git diff --git a/synfig-core/trunk/src/modules/example/filledrect.cpp b/synfig-core/trunk/src/modules/example/filledrect.cpp index b826588..ca5b988 100644 --- a/synfig-core/trunk/src/modules/example/filledrect.cpp +++ b/synfig-core/trunk/src/modules/example/filledrect.cpp @@ -332,12 +332,12 @@ FilledRect::accelerated_render(Context context,Surface *surface,int quality, con //the bounds of the rectangle Point p[2] = {point1,point2}; - if((p[0][0] > p[1][0]) ^ wpp < 0) + if((p[0][0] > p[1][0]) ^ (wpp < 0)) { swap(p[0][0],p[1][0]); } - if((p[0][1] > p[1][1]) ^ hpp < 0) + if((p[0][1] > p[1][1]) ^ (hpp < 0)) { swap(p[0][1],p[1][1]); }