text is now automatically centered in other dimension if x or y command is used.

This commit is contained in:
tixiv 2010-01-11 04:05:37 +00:00
parent afe1e7d265
commit 521b73e6ae
1 changed files with 4 additions and 0 deletions

View File

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