mirror of
https://github.com/davatorium/rofi.git
synced 2024-12-02 14:05:13 -05:00
Fix stupid typo in previous commit, swapping columns/rows in positioning textboxes.
This commit is contained in:
parent
f74c8c1839
commit
9240a636d4
1 changed files with 2 additions and 2 deletions
|
@ -1037,8 +1037,8 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
|
|||
int x_offset = config.padding;
|
||||
|
||||
for ( i = 0; i < state.max_elements; i++ ) {
|
||||
unsigned int ex = ( ( i ) % state.max_rows ) * ( state.element_width + LINE_MARGIN );
|
||||
unsigned int ey = ( ( i ) / state.max_rows ) * element_height + LINE_MARGIN;
|
||||
unsigned int ex = ( ( i ) / state.max_rows ) * ( state.element_width + LINE_MARGIN );
|
||||
unsigned int ey = ( ( i ) % state.max_rows ) * element_height + LINE_MARGIN;
|
||||
|
||||
state.boxes[i] = textbox_create ( main_window, &vinfo, map, 0,
|
||||
ex + x_offset, ey + y_offset,
|
||||
|
|
Loading…
Reference in a new issue