I have a panel with an image that fits the whole screen, and I use this code...
panel_face.scale_x = (screen_size.x / bmap_width[code](panel_face.bmap));
panel_face.scale_y = (screen_size.y / bmap_height(panel_face.bmap)+0.001);
...so that it adjusts to fit the screen at any resolution. This works fine.
However, I have a panel with a smaller image. When the resolution is adjusted the panel's image size remain the same. I used the code above, but that stretches it to fit the screen.
What code do I use to adjust the panel's bitmap size according to the screen resolution?