Vitus
Resource contributor
- Messages
- 1,480
- Country
Hi,
Those gauges won't leave me alone... For some reason all my GDI+ gauges automatically resized to 256x256 pixels. And I can't seem to find the cause of the issue. I define the size of the gauge in the panel.cfg like this:
gauge03=vega5!manual, 0,45,1920,905
I use the gauge width and height for some resizing in my C++ gauge. To gather that information, I have these lines in the PANEL_POST_INSTALL section:
When I debug that section of the code, I read 256x256 for both values, no matter the size of the panel. Any idea where this could be coming from?
Those gauges won't leave me alone... For some reason all my GDI+ gauges automatically resized to 256x256 pixels. And I can't seem to find the cause of the issue. I define the size of the gauge in the panel.cfg like this:
gauge03=vega5!manual, 0,45,1920,905
I use the gauge width and height for some resizing in my C++ gauge. To gather that information, I have these lines in the PANEL_POST_INSTALL section:
C++:
mGaugeWidth = element->image_data.final->dim.x;
mGaugeHeight= element->image_data.final->dim.y;
When I debug that section of the code, I read 256x256 for both values, no matter the size of the panel. Any idea where this could be coming from?