Video* video = Video::getInstance();
setSize(video->getScreenWidth(), video->getScreenHeight());
createBuffer();
- jpeg.setSurface(surface);
+// jpeg.setSurface(surface);
jpeg.setDimensions(area.w,area.h);
banner=NULL;
fullname=NULL;
void VPicture::draw()
{
- Log::getInstance()->log("VPicture::draw", Log::DEBUG, "needDraw=%d,p=%p",
- needDraw,this);
-// View::draw();
+ Log::getInstance()->log("VPicture::draw", Log::DEBUG, "needDraw=%d,p=%p", needDraw,this);
+ Boxx::draw();
if (mediaError) {
drawText(mediaError,20,area.h-10,Colour::LIGHTTEXT);
return;
}
- if (needDraw) {
- jpeg.draw();
- }
}
}
void VPicture::showBanner(bool loading,int shortDisplay) {
- //if the loading flag is set,
//we are in the main thread - so we can (and must) safely hard destroy/create the banner
Timers::getInstance()->cancelTimer(this,2);
if (! filename || ! currentMedia) {
if (! slideshow && shortDisplay == 0) shortDisplay=8;
//OK we start timer if we don't load and either shortDisplay or no slideshow
if (! loading && shortDisplay != 0) Timers::getInstance()->setTimerD(this,2,shortDisplay);
- if (! loading) ; /*sendViewMsg(banner,false); upgrade to boxx */
- else {
- BoxStack::getInstance()->add(banner);
- BoxStack::getInstance()->update(banner);
- }
+ BoxStack::getInstance()->add(banner);
+ BoxStack::getInstance()->update(banner);
}
void VPicture::destroyBanner(bool fromTimer) {
shortBanner=false;
if (banner) {
- if (fromTimer) ;/* sendViewMsg(banner,true); upgrade to boxx*/
+ if (fromTimer) sendViewMsg(banner,true);
else BoxStack::getInstance()->remove(banner);
banner=NULL;
if (! fromTimer) Timers::getInstance()->cancelTimer(this,2);
int h=cinfo.output_height;
logger->log("BJpeg", Log::DEBUG, "JPEG startup done pw=%i ph=%i, xo=%i,yo=%i, iw=%i, ih=%i", picturew, pictureh,xpos,ypos,w,h);
- // Init the surface
-// Temp disabled for boxx. what does this do anyway .. - cjt
-/*
if (useImageDimensions) setDimensions(picturew, pictureh);
fillColour(backgroundColour);
-*/
//line len in bytes (3 bytes per Pixel) - for buffer (can be bigger then surface)