X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Frenddesc.h;h=b763e88172ed046763d7163f7180ad643137aa78;hb=392b62fa87099d8576a9da614be431a5046fe595;hp=b6eb419523b3e839248e968ca2ad76602c0ddf7a;hpb=5003e42ad855b58d4de073dd2f62b2324c935a4e;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/renddesc.h b/synfig-core/trunk/src/synfig/renddesc.h index b6eb419..b763e88 100644 --- a/synfig-core/trunk/src/synfig/renddesc.h +++ b/synfig-core/trunk/src/synfig/renddesc.h @@ -278,7 +278,7 @@ public: //! Returns the height of one pixel Real get_ph()const; - //! Sets viewport to represent the screen at the give pixel coordinates + //! Sets viewport to represent the screen at the given pixel coordinates RendDesc &set_subwindow(int x, int y, int w, int h); }; // END of class RendDesc @@ -303,14 +303,15 @@ inline RendDesc::Lock operator~(RendDesc::Lock rhs) return static_cast(~(int)rhs); } +//! \todo This code isn't used - so how are flags checked? Using the FLAGS macro from color.h? //! This operator is for checking RendDesc::Lock flags. /*! Don't think of it as "less then or equal to", but think of it ** like an arrow. Is \a rhs inside of \a lhs ? ** \see RendDesc::Lock, RendDesc */ -inline bool operator<=(RendDesc::Lock lhs, RendDesc::Lock rhs) -{ - return static_cast(lhs) & static_cast(rhs)==static_cast(rhs); -} +// inline bool operator<=(RendDesc::Lock lhs, RendDesc::Lock rhs) +// { +// return (static_cast(lhs) & static_cast(rhs)) == static_cast(rhs); +// } }; /* end namespace synfig */