X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=synfig-core%2Fsrc%2Fsynfig%2Flayer_bitmap.cpp;h=73380780962f198e20d623b959a3c28dd2cfe3e1;hb=0495f31309c6eee6850c06a2b559b00982164a36;hp=cda5d09897d0fd8defef6108bc3500636bf2c819;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/layer_bitmap.cpp b/synfig-core/src/synfig/layer_bitmap.cpp index cda5d09..7338078 100644 --- a/synfig-core/src/synfig/layer_bitmap.cpp +++ b/synfig-core/src/synfig/layer_bitmap.cpp @@ -22,8 +22,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else @@ -69,7 +67,11 @@ synfig::Layer_Bitmap::Layer_Bitmap(): c (1), surface (128,128), trimmed (false), - gamma_adjust (1.0) + gamma_adjust (1.0), + tl_static (false), + br_static (false), + c_static (true), + gamma_adjust_static(false) { } @@ -523,3 +525,29 @@ Layer_Bitmap::get_bounding_rect()const { return Rect(tl,br); } + + +bool +Layer_Bitmap::set_param_static(const String ¶m, const bool x) +{ + + SET_STATIC(tl, x) + SET_STATIC(br, x) + SET_STATIC(c, x) + SET_STATIC(gamma_adjust, x) + + return Layer_Composite::set_param_static(param, x); +} + + +bool +Layer_Bitmap::get_param_static(const String ¶m) const +{ + + GET_STATIC(tl) + GET_STATIC(br) + GET_STATIC(c) + GET_STATIC(gamma_adjust) + + return Layer_Composite::get_param_static(param); +}