rainbow: some recent changes ported to WinAlt

git-svn-id: svn://ultimatepp.org/upp/trunk@3574 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
kohait 2011-06-28 09:20:41 +00:00
parent bfb0f51ec6
commit 1f0ff9228f
3 changed files with 16 additions and 1 deletions

View file

@ -2,7 +2,7 @@
#ifdef GUI_FB
#include <shellapi.h>
//#include <shellapi.h>
NAMESPACE_UPP

View file

@ -145,6 +145,12 @@ void SystemDraw::DrawLineOp(int x1, int y1, int x2, int y2, int width, Color col
::LineTo(handle, x2, y2);
}
void SystemDraw::DrawImageOp(int x, int y, int cx, int cy, const Image& img, const Rect& src, Color color)
{
GuiLock __;
StdDrawImage(*this, x, y, cx, cy, img, src, color);
}
#ifndef PLATFORM_WINCE
void SystemDraw::DrawPolyPolylineOp(const Point *vertices, int vertex_count,

View file

@ -400,6 +400,15 @@ void ImageDraw::Init()
has_alpha = false;
}
Draw& ImageDraw::Alpha()
{
if(!has_alpha) {
alpha.DrawRect(size, GrayColor(0));
has_alpha = true;
}
return alpha;
}
Image ImageDraw::Get(bool pm) const
{
ImageBuffer b(size);