comparison gui/win32/widgetrender.c @ 36884:98568083fb1d

Render the full height of the image as calculated. The X11/GTK GUI does so as well. In particular, there must not be code for a special handling of a specific skin - a handling which seems to be obsolete meanwhile anyway.
author ib
date Fri, 07 Mar 2014 13:58:14 +0000
parents 5b01e1e9d9ef
children f50427ad9ff6
comparison
equal deleted inserted replaced
36883:e299b6fd7eaa 36884:98568083fb1d
334 item->x = item->value * (item->wwidth-item->width) / 100 + item->wx; 334 item->x = item->value * (item->wwidth-item->width) / 100 + item->wx;
335 if((item->x + item->width) > (item->wx + item->wwidth)) 335 if((item->x + item->width) > (item->wx + item->wwidth))
336 item->x = item->wx + item->wwidth - item->width; 336 item->x = item->wx + item->wwidth - item->width;
337 if(item->x < item->wx) 337 if(item->x < item->wx)
338 item->x = item->wx; 338 item->x = item->wx;
339 /* workaround for blue */
340 if(item->type == tyHpotmeter)
341 height = (item->height < img->height / 3) ? item->height : img->height / 3;
342 } 339 }
343 render(skin->desktopbpp, dest, img, item->x, item->y, 0, y, img->width, height, 1); 340 render(skin->desktopbpp, dest, img, item->x, item->y, 0, y, img->width, height, 1);
344 } 341 }