gui2/ttext_box: Move selection highlight to the right place

This commit is contained in:
Ignacio R. Morelle 2016-10-03 20:06:30 -03:00
parent b1fe37b90b
commit 5375ad838f

View file

@ -24,17 +24,6 @@
#enddef
#define _GUI_DRAW_BORDER COLOR
[rectangle]
x = "(text_x_offset + selection_offset)"
y = "(text_y_offset)"
w = "(selection_width)"
h = "(text_font_height)"
border_thickness = 0
fill_color = "21, 53, 80, 255"
[/rectangle]
[rectangle]
x = 0
y = 0
@ -48,6 +37,16 @@
#enddef
#define _GUI_DRAW_TEXT SIZE COLOR
[rectangle]
x = "(text_x_offset + selection_offset)"
y = "(text_y_offset)"
w = "(selection_width)"
h = "(text_font_height)"
border_thickness = 0
fill_color = "21, 53, 80, 255"
[/rectangle]
[text]
x = "(text_x_offset)"
y = "(text_y_offset)"