1
0
Fork 0
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:
Dave Davenport 2015-02-12 07:55:23 +01:00
parent f74c8c1839
commit 9240a636d4

View file

@ -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,