Use map of static values indexed by parameter name instead of the macros and the...
[synfig.git] / synfig-core / src / synfig / layer_bitmap.cpp
index 8443429..742b023 100644 (file)
@@ -69,6 +69,9 @@ synfig::Layer_Bitmap::Layer_Bitmap():
        trimmed                 (false),
        gamma_adjust    (1.0)
 {
+       Layer::Vocab voc(get_param_vocab());
+       Layer::fill_static(voc);
+       set_param_static("c", true);
 }
 
 bool
@@ -521,3 +524,17 @@ Layer_Bitmap::get_bounding_rect()const
 {
        return Rect(tl,br);
 }
+
+
+bool
+Layer_Bitmap::set_param_static(const String &param, const bool x)
+{
+       return Layer_Composite::set_param_static(param, x);
+}
+
+
+bool
+Layer_Bitmap::get_param_static(const String &param) const
+{
+       return Layer_Composite::get_param_static(param);
+}