blob: beeddfd5d535c3bc74440e5922c08efa1122e4e2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "precomp.h"
#include "blankwnd.h"
#include <tataki/canvas/canvas.h>
#include <api/wnd/PaintCanvas.h>
BlankWnd::BlankWnd(RGB32 _color) : color(_color)
{
}
int BlankWnd::onPaint(Canvas *canvas)
{
PaintCanvas pc;
if (canvas == NULL)
{
if (!pc.beginPaint(this)) return 0;
canvas = &pc;
}
canvas->fillRect(&clientRect(), color);
return 1;
}
|