From c9bfc4db72b84292f541c795993abde98e22121f Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 6 Mar 2006 10:44:07 +0000 Subject: *** empty log message *** --- client/yuv_draw.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'client/yuv_draw.cc') 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 @@ -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() -- cgit v1.2.3