mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-20 19:36:00 +01:00
25 lines
361 B
C++
25 lines
361 B
C++
|
#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;
|
||
|
}
|
||
|
|