change hidden to enabled

refs #83
This commit is contained in:
Konstantin Käfer
2014-03-25 13:23:51 +01:00
parent 48e8ca0e43
commit 166305fb14
4 changed files with 23 additions and 23 deletions

View File

@@ -37,7 +37,7 @@ void Style::cascade(float z) {
// TODO: This should be restricted to fill styles that have actual
// values so as to not override with default values.
llmr::FillProperties& fill = computed.fills[layer_name];
fill.hidden = layer.hidden(z);
fill.enabled = layer.enabled(z);
fill.winding = layer.winding;
fill.antialias = layer.antialias(z);
fill.fill_color = layer.fill_color;
@@ -54,7 +54,7 @@ void Style::cascade(float z) {
// TODO: This should be restricted to line styles that have actual
// values so as to not override with default values.
llmr::LineProperties& stroke = computed.lines[layer_name];
stroke.hidden = layer.hidden(z);
stroke.enabled = layer.enabled(z);
stroke.width = layer.width(z);
stroke.offset = layer.offset(z);
stroke.color = layer.color;
@@ -69,7 +69,7 @@ void Style::cascade(float z) {
// TODO: This should be restricted to point styles that have actual
// values so as to not override with default values.
llmr::PointProperties& point = computed.points[layer_name];
point.hidden = layer.hidden(z);
point.enabled = layer.enabled(z);
point.color = layer.color;
point.size = layer.size(z);
point.opacity = layer.opacity(z);
@@ -83,7 +83,7 @@ void Style::cascade(float z) {
// TODO: This should be restricted to point styles that have actual
// values so as to not override with default values.
llmr::TextProperties& text = computed.texts[layer_name];
text.hidden = layer.hidden(z);
text.enabled = layer.enabled(z);
text.color = layer.color;
text.size = layer.size(z);
text.halo = layer.halo;