diff options
author | akshay-c | 2019-09-13 12:24:18 +0530 |
---|---|---|
committer | akshay-c | 2019-09-13 12:24:18 +0530 |
commit | 13b6349465e26e8cd015e4153aa8843c706275ec (patch) | |
tree | 73cd7302c00957cb6eae1cacdffb77073556beec /ldmicro/draw.cpp | |
parent | e64d76c057d561e81ad26dcc9acf04f014a855e9 (diff) | |
download | LDmicroQt-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.cpp | 8 |
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; |