summaryrefslogtreecommitdiff
path: root/ldmicro/draw.cpp
diff options
context:
space:
mode:
authorakshay-c2019-09-13 12:24:18 +0530
committerakshay-c2019-09-13 12:24:18 +0530
commit13b6349465e26e8cd015e4153aa8843c706275ec (patch)
tree73cd7302c00957cb6eae1cacdffb77073556beec /ldmicro/draw.cpp
parente64d76c057d561e81ad26dcc9acf04f014a855e9 (diff)
downloadLDmicroQt-13b6349465e26e8cd015e4153aa8843c706275ec.tar.gz
LDmicroQt-13b6349465e26e8cd015e4153aa8843c706275ec.tar.bz2
LDmicroQt-13b6349465e26e8cd015e4153aa8843c706275ec.zip
Patch 1 ToolBar, AnalogSlider Realtime update
Diffstat (limited to 'ldmicro/draw.cpp')
-rw-r--r--ldmicro/draw.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ldmicro/draw.cpp b/ldmicro/draw.cpp
index 0adba74..cb5764a 100644
--- a/ldmicro/draw.cpp
+++ b/ldmicro/draw.cpp
@@ -891,21 +891,21 @@ cmp:
switch(leaf->selectedState) {
case SELECTED_LEFT:
Cursor.setLeft(x0 + FONT_WIDTH - 4 - xadj);
- Cursor.setTop(y0 - FONT_HEIGHT/2);
+ Cursor.setTop(y0 - FONT_HEIGHT/2 - 10);
Cursor.setWidth(2);
Cursor.setHeight(POS_HEIGHT*FONT_HEIGHT);
break;
case SELECTED_RIGHT:
Cursor.setLeft(x0 + (POS_WIDTH-1)*FONT_WIDTH - 5);
- Cursor.setTop(y0 - FONT_HEIGHT/2);
+ Cursor.setTop(y0 - FONT_HEIGHT/2 - 10);
Cursor.setWidth(2);
Cursor.setHeight(POS_HEIGHT*FONT_HEIGHT);
break;
case SELECTED_ABOVE:
Cursor.setLeft(x0 + FONT_WIDTH/2 - xadj);
- Cursor.setTop(y0 - 2);
+ Cursor.setTop(y0 - 10);
Cursor.setWidth((POS_WIDTH-2)*FONT_WIDTH + xadj);
Cursor.setHeight(2);
break;
@@ -913,7 +913,7 @@ cmp:
case SELECTED_BELOW:
Cursor.setLeft(x0 + FONT_WIDTH/2 - xadj);
Cursor.setTop(y0 + (POS_HEIGHT-1)*FONT_HEIGHT +
- FONT_HEIGHT/2 - 2);
+ FONT_HEIGHT/2 - 10);
Cursor.setWidth((POS_WIDTH-2)*(FONT_WIDTH) + xadj);
Cursor.setHeight(2);
break;