1
0
Fork 0
forked from len0rd/rockbox

Fix flag for the viewport. Text is supposed to be centered.

Change-Id: I8b29787fb99e0469c9e4a0b0ea08e61d3ff92589
This commit is contained in:
Thomas Martitz 2012-01-23 01:08:11 +01:00
parent de1bcfa24f
commit 8a43603975

View file

@ -99,7 +99,7 @@ void touchbutton_draw(struct touchbutton *data, int num_buttons) {
/* Set line_height to height, then it'll center for us */ /* Set line_height to height, then it'll center for us */
data[i].vp.line_height = data[i].vp.height; data[i].vp.line_height = data[i].vp.height;
data[i].vp.flags |= VP_FLAG_ALIGN_RIGHT; data[i].vp.flags |= VP_FLAG_ALIGN_CENTER;
/* If the width offset was 0, use a scrolling puts, else center and /* If the width offset was 0, use a scrolling puts, else center and
* print the title. * print the title.