mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 22:03:07 -06:00
reorganizing repo
git-svn-id: svn://ultimatepp.org/upp/trunk@9206 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7d17505cfe
commit
e3e8d627f5
3840 changed files with 0 additions and 1161578 deletions
|
|
@ -1,30 +0,0 @@
|
|||
#include "ImageDisplayCtrl.h"
|
||||
|
||||
void ImageDisplayCtrl::Paint(Draw& w) {
|
||||
RLOG(GetSysTime() << " % " << (unsigned)msecs() % 10000 << ": ImageDisplayCtrl::Paint");
|
||||
if (image.IsVoid() || image.IsEmpty()) {
|
||||
Size win = GetSize();
|
||||
w.DrawRect(win,SColorPaper());
|
||||
} else {
|
||||
Size win = GetSize();
|
||||
Size im = image.GetSize();
|
||||
Size fsz = image.FitSize(win);
|
||||
Rect imagerect = Rect(win).CenterRect(fsz);
|
||||
Rect top(GetSize());
|
||||
Rect bottom(GetSize());
|
||||
Rect left(GetSize());
|
||||
Rect right(GetSize());
|
||||
top.bottom = imagerect.top;
|
||||
bottom.top = imagerect.bottom;
|
||||
left.right = imagerect.left;
|
||||
right.left = imagerect.right;
|
||||
w.DrawRect(top,SColorPaper());
|
||||
w.DrawRect(left,SColorPaper());
|
||||
w.DrawRect(right,SColorPaper());
|
||||
w.DrawRect(bottom,SColorPaper());
|
||||
RLOG(GetSysTime() << " % " << (unsigned)msecs() % 10000 << ": DrawImage, " << image.GetSize() << " -> " << imagerect.Size());
|
||||
w.DrawImage(imagerect, image);
|
||||
RLOG(GetSysTime() << " % " << (unsigned)msecs() % 10000 << ": //DrawImage");
|
||||
}
|
||||
RLOG(GetSysTime() << " % " << (unsigned)msecs() % 10000 << ": //ImageDisplayCtrl::Paint");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue