mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-25 22:03:45 -06:00
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:
parent
bfb0f51ec6
commit
1f0ff9228f
3 changed files with 16 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#ifdef GUI_FB
|
||||
|
||||
#include <shellapi.h>
|
||||
//#include <shellapi.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue