mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-24 22:03:31 -06:00
Developing Draw
git-svn-id: svn://ultimatepp.org/upp/trunk@1146 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
39f7e7385c
commit
6674597efe
15 changed files with 90 additions and 48 deletions
|
|
@ -11,8 +11,9 @@ void WinMetaFile::Init() {
|
|||
|
||||
void WinMetaFile::Paint(Draw& w, const Rect& r) const {
|
||||
ChkP();
|
||||
if(hemf)
|
||||
PlayEnhMetaFile(w, hemf, r);
|
||||
SystemDraw *h = dynamic_cast<SystemDraw *>(&w);
|
||||
if(hemf && h)
|
||||
PlayEnhMetaFile(h->GetHandle(), hemf, r);
|
||||
}
|
||||
|
||||
void WinMetaFile::Paint(Draw& w, int x, int y, int cx, int cy) const {
|
||||
|
|
@ -197,7 +198,7 @@ bool WinMetaFileDraw::Create(HDC hdc, int cx, int cy, const char *app, const cha
|
|||
|
||||
Init();
|
||||
|
||||
pixels = false;
|
||||
style = DOTS|BACK;
|
||||
|
||||
::SetMapMode(handle, MM_ANISOTROPIC);
|
||||
::SetWindowOrgEx(handle, 0, 0, 0);
|
||||
|
|
@ -214,14 +215,6 @@ bool WinMetaFileDraw::Create(HDC hdc, int cx, int cy, const char *app, const cha
|
|||
|
||||
actual_offset = Point(0, 0);
|
||||
|
||||
printer = false;
|
||||
pixels = false;
|
||||
actual_offset = Point(0, 0);
|
||||
device = -1;
|
||||
aborted = false;
|
||||
palette = false;
|
||||
backdraw = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue