From 10eac928ae0a1441529f7d38dd774740af477481 Mon Sep 17 00:00:00 2001 From: alwin Date: Sun, 04 Apr 2004 19:08:33 +0000 Subject: thumbnails will respect again the dimension values wished. just when them seems to be nonsens we will use hard wired 64x64 pix --- (limited to 'noncore') diff --git a/noncore/graphics/opie-eye/slave/slavereciever.cpp b/noncore/graphics/opie-eye/slave/slavereciever.cpp index 82b3d23..fb88873 100644 --- a/noncore/graphics/opie-eye/slave/slavereciever.cpp +++ b/noncore/graphics/opie-eye/slave/slavereciever.cpp @@ -185,8 +185,14 @@ void SlaveReciever::slotThumbNail() { SlaveInterface* iface = it.data(); if( iface->supports(inf.file ) ) { /* pixmap */ - owarn << "Asking for thumbNail in size " << inf.width << " " << inf.height << " for "+inf.file << oendl; - inf.pixmap = iface->pixmap(inf.file, 64, 64); + owarn << "Asking for thumbNail in size " << inf.width << " " << inf.height << " for "+inf.file << oendl; + if (inf.width>256||inf.height>256) { + owarn << "Scaling thumbnail to 64x64 'cause " << inf.width<<"x"<pixmap(inf.file, 64, 64); + }else { + inf.pixmap = iface->pixmap(inf.file, inf.width, inf.height); + } m_outPix.append( inf ); break; } -- cgit v0.9.0.2