Diffstat (limited to 'core/apps/embeddedkonsole/TEWidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/TEWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/embeddedkonsole/TEWidget.cpp b/core/apps/embeddedkonsole/TEWidget.cpp index a56dc50..dab0ea3 100644 --- a/core/apps/embeddedkonsole/TEWidget.cpp +++ b/core/apps/embeddedkonsole/TEWidget.cpp | |||
@@ -520,49 +520,49 @@ HCNT("paintEvent"); | |||
520 | QRect(blX+tLx+font_w*x,bY+tLy+font_h*y,font_w*len,font_h), | 520 | QRect(blX+tLx+font_w*x,bY+tLy+font_h*y,font_w*len,font_h), |
521 | unistr, image[loc(x,y)], pm != NULL, false); | 521 | unistr, image[loc(x,y)], pm != NULL, false); |
522 | x += len - 1; | 522 | x += len - 1; |
523 | } | 523 | } |
524 | delete [] disstrU; | 524 | delete [] disstrU; |
525 | drawFrame( &paint ); | 525 | drawFrame( &paint ); |
526 | paint.end(); | 526 | paint.end(); |
527 | setUpdatesEnabled(TRUE); | 527 | setUpdatesEnabled(TRUE); |
528 | } | 528 | } |
529 | 529 | ||
530 | void TEWidget::blinkEvent() | 530 | void TEWidget::blinkEvent() |
531 | { | 531 | { |
532 | blinking = !blinking; | 532 | blinking = !blinking; |
533 | repaint(FALSE); | 533 | repaint(FALSE); |
534 | } | 534 | } |
535 | 535 | ||
536 | /* ------------------------------------------------------------------------- */ | 536 | /* ------------------------------------------------------------------------- */ |
537 | /* */ | 537 | /* */ |
538 | /* Resizing */ | 538 | /* Resizing */ |
539 | /* */ | 539 | /* */ |
540 | /* ------------------------------------------------------------------------- */ | 540 | /* ------------------------------------------------------------------------- */ |
541 | 541 | ||
542 | void TEWidget::resizeEvent(QResizeEvent* ev) | 542 | void TEWidget::resizeEvent(QResizeEvent* ev) |
543 | { | 543 | { |
544 | //printf("resize: %d,%d\n",ev->size().width(),ev->size().height()); | 544 | // printf("resize: %d,%d\n",ev->size().width(),ev->size().height()); |
545 | //printf("approx: %d,%d\n",ev->size().width()/font_w,ev->size().height()/font_h); | 545 | //printf("approx: %d,%d\n",ev->size().width()/font_w,ev->size().height()/font_h); |
546 | //printf("leaves: %d,%d\n",ev->size().width()%font_w,ev->size().height()%font_h); | 546 | //printf("leaves: %d,%d\n",ev->size().width()%font_w,ev->size().height()%font_h); |
547 | //printf("curren: %d,%d\n",width(),height()); | 547 | //printf("curren: %d,%d\n",width(),height()); |
548 | HCNT("resizeEvent"); | 548 | HCNT("resizeEvent"); |
549 | 549 | ||
550 | // see comment in `paintEvent' concerning the rounding. | 550 | // see comment in `paintEvent' concerning the rounding. |
551 | //FIXME: could make a routine here; check width(),height() | 551 | //FIXME: could make a routine here; check width(),height() |
552 | assert(ev->size().width() == width()); | 552 | assert(ev->size().width() == width()); |
553 | assert(ev->size().height() == height()); | 553 | assert(ev->size().height() == height()); |
554 | 554 | ||
555 | propagateSize(); | 555 | propagateSize(); |
556 | } | 556 | } |
557 | 557 | ||
558 | void TEWidget::propagateSize() | 558 | void TEWidget::propagateSize() |
559 | { | 559 | { |
560 | ca* oldimg = image; | 560 | ca* oldimg = image; |
561 | int oldlin = lines; | 561 | int oldlin = lines; |
562 | int oldcol = columns; | 562 | int oldcol = columns; |
563 | makeImage(); | 563 | makeImage(); |
564 | // we copy the old image to reduce flicker | 564 | // we copy the old image to reduce flicker |
565 | int lins = QMIN(oldlin,lines); | 565 | int lins = QMIN(oldlin,lines); |
566 | int cols = QMIN(oldcol,columns); | 566 | int cols = QMIN(oldcol,columns); |
567 | if (oldimg) | 567 | if (oldimg) |
568 | { | 568 | { |