summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-05-23 19:24:44 +0200
committerchriszero <zerov83@gmail.com>2015-05-23 19:24:44 +0200
commitdb0a2649e8edb72b6e459e1ba3c34725903f1020 (patch)
tree7f23816e529cbf26edac0a05ddc1c7962fddd0b1
parentfc8dc9531193e872dd65914f8ffa1491bc5cf9ff (diff)
downloadvdr-plugin-plex-db0a2649e8edb72b6e459e1ba3c34725903f1020.tar.gz
vdr-plugin-plex-db0a2649e8edb72b6e459e1ba3c34725903f1020.tar.bz2
- Fix: rows/columns token at redraw
-rw-r--r--viewGridNavigator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/viewGridNavigator.cpp b/viewGridNavigator.cpp
index acae152..f8d71c9 100644
--- a/viewGridNavigator.cpp
+++ b/viewGridNavigator.cpp
@@ -42,6 +42,8 @@ void cViewGridNavigator::ReDraw(cGridElement* element)
double x, y;
element->GetPosition(x, y);
element->AddTokens(m_pGrid);
+ m_pGrid->AddIntToken("columns", m_columns);
+ m_pGrid->AddIntToken("rows", m_rows);
double width = 1.0 / m_columns;
double height = 1.0 / m_rows;
m_pGrid->SetGrid(element->GridElementId(), x, y, width, height);