mirror of
https://github.com/glest/glest-source.git
synced 2025-09-01 04:01:47 +02:00
- better messagebox painting
- bugfix for progress bar painting
This commit is contained in:
@@ -1657,6 +1657,7 @@ void Renderer::renderMessageBox(const GraphicMessageBox *messageBox) {
|
|||||||
|
|
||||||
glPopAttrib();
|
glPopAttrib();
|
||||||
|
|
||||||
|
glDisable(GL_BLEND);
|
||||||
//buttons
|
//buttons
|
||||||
renderButton(messageBox->getButton1());
|
renderButton(messageBox->getButton1());
|
||||||
if(messageBox->getButtonCount()==2){
|
if(messageBox->getButtonCount()==2){
|
||||||
@@ -4167,7 +4168,7 @@ void Renderer::renderProgressBar(int size, int x, int y, Font2D *font, int custo
|
|||||||
string renderText = intToStr(static_cast<int>(size)) + "%";
|
string renderText = intToStr(static_cast<int>(size)) + "%";
|
||||||
if(customWidth > 0) {
|
if(customWidth > 0) {
|
||||||
if(size > 0) {
|
if(size > 0) {
|
||||||
currentSize = size * (customWidth / size);
|
currentSize = customWidth * (size / 100);
|
||||||
}
|
}
|
||||||
maxSize = customWidth;
|
maxSize = customWidth;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user