Skip to content

Commit

Permalink
Merge pull request #608 from vangers-app/fix_605
Browse files Browse the repository at this point in the history
Fix #605: center tabutask & ending texts
  • Loading branch information
stalkerg authored Oct 15, 2022
2 parents 6fef4b4 + 943ad70 commit 5a214b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/actint/actint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9666,10 +9666,13 @@ void aciScreenText::redraw(void)
p = (aciScreenTextPage*)p -> next;
}

y = (XGR_MAXY - (DeltaY + aTextHeight32((void *)"",font,1)) * p -> NumStr)/2;

int screenSizeX = XGR_Obj.get_is_scaled_renderer() ? I_RES_X : XGR_MAXX;
int screenSizeY = XGR_Obj.get_is_scaled_renderer() ? I_RES_Y : XGR_MAXY;
y = (screenSizeY - (DeltaY + aTextHeight32((void *)"",font,1)) * p -> NumStr)/2;
for(i = 0; i < CurStr; i ++){
str = p -> StrTable[i];
x = (XGR_MAXX - aTextWidth32(str,font,1))/2;
x = (screenSizeX - aTextWidth32(str,font,1))/2;

aOutText32(x,y,color,str,font,1,1);
y += DeltaY + aTextHeight32(str,font,1);
Expand Down

0 comments on commit 5a214b1

Please sign in to comment.