summaryrefslogtreecommitdiff
path: root/client/yuv_draw.cc
diff options
context:
space:
mode:
authordeva <deva>2006-03-06 10:44:07 +0000
committerdeva <deva>2006-03-06 10:44:07 +0000
commitc9bfc4db72b84292f541c795993abde98e22121f (patch)
tree687411dce72a70dc0f4c337c8e496607308f8ab4 /client/yuv_draw.cc
parentc629a137b5f91097004f1a267d1433393e5cc512 (diff)
*** empty log message ***
Diffstat (limited to 'client/yuv_draw.cc')
-rw-r--r--client/yuv_draw.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/yuv_draw.cc b/client/yuv_draw.cc
index 21e5c28..156c705 100644
--- a/client/yuv_draw.cc
+++ b/client/yuv_draw.cc
@@ -29,7 +29,7 @@
#include "yuv_draw.h"
// for miav_app
-#include "miav.h"
+#include "miav_client.h"
#include <string.h>
@@ -47,7 +47,7 @@ static QImage *loadIcon( char *name, int height )
int h = height;
int w = (int)((float)img->width() / (float)(img->height() / (float)h));
- scaled = img->smoothScale(w, h);
+ scaled = img->scaled(w, h, Qt::KeepAspectRatio, Qt::SmoothTransformation);
delete img;
img = new QImage(scaled);
@@ -107,6 +107,7 @@ void YUVDraw::addPixel(int x, int y, int val)
void YUVDraw::setTopText(char* text)
{
+ /*
miav_app->lock();
top_pixmap->fill();
@@ -125,10 +126,12 @@ void YUVDraw::setTopText(char* text)
}
}
miav_app->unlock();
+ */
}
void YUVDraw::setBottomText(char* text)
{
+ /*
miav_app->lock();
bottom_pixmap->fill();
@@ -147,6 +150,7 @@ void YUVDraw::setBottomText(char* text)
}
}
miav_app->unlock();
+ */
}
void YUVDraw::draw()