git-svn-id: svn://db.shs.com.ru/pip@249 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -472,8 +472,8 @@ void PIScreen::begin() {
|
||||
|
||||
void PIScreen::run() {
|
||||
console.prepare();
|
||||
root.width = drawer_.width = console.width;
|
||||
root.height = drawer_.height = console.height;
|
||||
root.width_ = drawer_.width = console.width;
|
||||
root.height_ = drawer_.height = console.height;
|
||||
root.layout();
|
||||
root.drawEventInternal(&drawer_);
|
||||
if (tile_dialog) {
|
||||
@@ -481,12 +481,12 @@ void PIScreen::run() {
|
||||
tile_dialog->sizeHint(sw, sh);
|
||||
sw = piClampi(sw, tile_dialog->minimumWidth, tile_dialog->maximumWidth);
|
||||
sh = piClampi(sh, tile_dialog->minimumHeight, tile_dialog->maximumHeight);
|
||||
tile_dialog->x = (console.width - sw) / 2;
|
||||
tile_dialog->y = (console.height - sh) / 2;
|
||||
tile_dialog->width = sw;
|
||||
tile_dialog->height = sh;
|
||||
tile_dialog->x_ = (console.width - sw) / 2;
|
||||
tile_dialog->y_ = (console.height - sh) / 2;
|
||||
tile_dialog->width_ = sw;
|
||||
tile_dialog->height_ = sh;
|
||||
tile_dialog->layout();
|
||||
int dx = tile_dialog->x - 1, dy = tile_dialog->y - 1, dw = tile_dialog->width, dh = tile_dialog->height;
|
||||
int dx = tile_dialog->x_ - 1, dy = tile_dialog->y_ - 1, dw = tile_dialog->width_, dh = tile_dialog->height_;
|
||||
drawer_.drawFrame(dx, dy, dx + dw + 1, dy + dh + 1, (Color)tile_dialog->back_format.color_char,
|
||||
(Color)tile_dialog->back_format.color_back, (CharFlags)tile_dialog->back_format.flags);
|
||||
tile_dialog->drawEventInternal(&drawer_);
|
||||
|
||||
Reference in New Issue
Block a user