X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fexample%2Ffilledrect.cpp;h=0c165edaf2daefd67d57d7261a7878d136984aaa;hb=1ba01d62f55407997aca33ed89d171ea7e5979d1;hp=b826588fc2d7338ea1e2001902ff25dc8ca29106;hpb=2d1ee9b0b0951b7bfb77b92f4fdd7e69d84c8e9e;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..0c165ed 100644 --- a/synfig-core/trunk/src/modules/example/filledrect.cpp +++ b/synfig-core/trunk/src/modules/example/filledrect.cpp @@ -53,9 +53,9 @@ using namespace synfig; /* === G L O B A L S ======================================================= */ SYNFIG_LAYER_INIT(FilledRect); -SYNFIG_LAYER_SET_NAME(FilledRect,"rectangle"); -SYNFIG_LAYER_SET_LOCAL_NAME(FilledRect,N_("Rectangle")); -SYNFIG_LAYER_SET_CATEGORY(FilledRect,N_("Geometry")); +SYNFIG_LAYER_SET_NAME(FilledRect,"filled_rectangle"); +SYNFIG_LAYER_SET_LOCAL_NAME(FilledRect,N_("Filled Rectangle")); +SYNFIG_LAYER_SET_CATEGORY(FilledRect,N_("Example")); SYNFIG_LAYER_SET_VERSION(FilledRect,"0.1"); SYNFIG_LAYER_SET_CVS_ID(FilledRect,"$Id$"); @@ -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]); }