From 521b73e6ae80abd290e1b9184afaadb0d4f6a169 Mon Sep 17 00:00:00 2001 From: tixiv Date: Mon, 11 Jan 2010 04:05:37 +0000 Subject: [PATCH] text is now automatically centered in other dimension if x or y command is used. --- scrolltext/scrolltext3.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scrolltext/scrolltext3.c b/scrolltext/scrolltext3.c index b1d7ab3..35a3608 100644 --- a/scrolltext/scrolltext3.c +++ b/scrolltext/scrolltext3.c @@ -354,6 +354,10 @@ blob_t * setupBlob(char * str){ }else if(*blob->commands == 'u'){ blob->posy = blob->sizey; blob->posx = (NUM_COLS - 2 + blob->sizex)/2; + }else if(*blob->commands == 'x'){ + blob->posy = (NUM_ROWS-blob->sizey)/2; + }else if(*blob->commands == 'y'){ + blob->posx = (NUM_COLS - 2 + blob->sizex)/2; } blob->delayx_rld = 0;