g.fillRect(x, y, width, height, s.getBgTransparency());
}
} else {
if (s.isScaleImage()) {
if (bgImage.getWidth() != width || bgImage.getHeight() != height) {
bgImage = bgImage.scaled(width, height);
s.setBgImage(bgImage, true);
}
} else {
int iW = bgImage.getWidth();
int iH = bgImage.getHeight();