00001 #include "mythpainter.h"
00002 #include "mythfontproperties.h"
00003 #include <cassert>
00004 #include "mythimage.h"
00005
00006 void MythPainter::SetClipRect(const QRect &)
00007 {
00008 }
00009
00010 void MythPainter::DrawImage(int x, int y, MythImage *im, int alpha)
00011 {
00012 assert(im);
00013 QRect dest = QRect(x, y, im->width(), im->height());
00014 QRect src = im->rect();
00015 DrawImage(dest, im, src, alpha);
00016 }
00017
00018 void MythPainter::DrawImage(const QPoint &topLeft, MythImage *im, int alpha)
00019 {
00020 DrawImage(topLeft.x(), topLeft.y(), im, alpha);
00021 }
00022