Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
24
Src/Wasabi/api/wnd/wndclass/blankwnd.cpp
Normal file
24
Src/Wasabi/api/wnd/wndclass/blankwnd.cpp
Normal file
|
@ -0,0 +1,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;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue