34 const int32_t width = int32_t(
float(
Gothic::options().newChapterSize.w)*scale);
35 const int32_t height = int32_t(
float(
Gothic::options().newChapterSize.h)*scale);
36 const int32_t offset = int32_t(50*scale);
39 int x = (w()-width )/2;
40 int y = (h()-height)/2;
42 p.drawRect(x,y,width,height,
43 0,0,back->w(),back->h());
47 auto sz = fnt.textSize(title);
48 fnt.drawText(p,x+(width-sz.w)/2,y+offset+
int(fnt.pixelSize()),title);
53 auto sz = fnt.textSize(subTitle);
54 fnt.drawText(p,x+(width-sz.w)/2,y+height-offset,subTitle);