Fix bug #7980 (multiple powerbars), patch by Giel van Schijndel.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@925 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
7cb58437f4
commit
fed7e0b738
|
@ -805,7 +805,7 @@ void intDisplayPowerBar(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD
|
|||
iV_DrawImageRect(IntImages,IMAGE_PBAR_EMPTY,
|
||||
x0,y0,
|
||||
0,0,
|
||||
textWidth, iV_GetImageWidth(IntImages,IMAGE_PBAR_EMPTY));
|
||||
textWidth, iV_GetImageHeight(IntImages,IMAGE_PBAR_EMPTY));
|
||||
x0 += textWidth;
|
||||
}
|
||||
|
||||
|
@ -819,14 +819,14 @@ void intDisplayPowerBar(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD
|
|||
iV_DrawImageRect(IntImages,IMAGE_PBAR_USED,
|
||||
x0,y0,
|
||||
0,0,
|
||||
ManPow, iV_GetImageWidth(IntImages,IMAGE_PBAR_USED));
|
||||
ManPow, iV_GetImageHeight(IntImages,IMAGE_PBAR_USED));
|
||||
}
|
||||
else
|
||||
{
|
||||
iV_DrawImageRect(IntImages,IMAGE_PBAR_REQUIRED,
|
||||
x0,y0,
|
||||
0,0,
|
||||
ManPow, iV_GetImageWidth(IntImages,IMAGE_PBAR_REQUIRED));
|
||||
ManPow, iV_GetImageHeight(IntImages,IMAGE_PBAR_REQUIRED));
|
||||
}
|
||||
|
||||
x0 += ManPow;
|
||||
|
@ -837,7 +837,7 @@ void intDisplayPowerBar(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD
|
|||
iV_DrawImageRect(IntImages,IMAGE_PBAR_AVAIL,
|
||||
x0,y0,
|
||||
0,0,
|
||||
Avail-ManPow, iV_GetImageWidth(IntImages,IMAGE_PBAR_AVAIL));
|
||||
Avail-ManPow, iV_GetImageHeight(IntImages,IMAGE_PBAR_AVAIL));
|
||||
|
||||
x0 += Avail-ManPow;
|
||||
}
|
||||
|
@ -848,7 +848,7 @@ void intDisplayPowerBar(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD
|
|||
iV_DrawImageRect(IntImages,IMAGE_PBAR_EMPTY,
|
||||
x0,y0,
|
||||
0,0,
|
||||
Empty, iV_GetImageWidth(IntImages,IMAGE_PBAR_EMPTY));
|
||||
Empty, iV_GetImageHeight(IntImages,IMAGE_PBAR_EMPTY));
|
||||
x0 += Empty;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue