diff options
Diffstat (limited to 'client/yuv_draw.cc')
-rw-r--r-- | client/yuv_draw.cc | 8 |
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() |