Fix indentation

This commit is contained in:
2015-01-23 03:54:25 -05:00
parent bbbdccbd81
commit 41db6dcfdf
21 changed files with 211 additions and 407 deletions

View File

@@ -523,7 +523,6 @@ void cButton::setBtnType(eBtnType newType){
frame.width() = 30;
frame.height() = 30;
break;
}
}

View File

@@ -841,7 +841,7 @@ void cDialog::loadFromFile(std::string path){
}catch(int){
throw xBadVal("text",name,val,attr->Row(),attr->Column(),fname);
}
defTextClr = clr;
defTextClr = clr;
} else if(name == "defbtn") {
defaultButton = val;
}else if(name != "debug")

View File

@@ -345,7 +345,7 @@ void cThreeChoice::init_strings(std::vector<std::string>& strings, unsigned shor
TextStyle style;
rectangle cur_text_rect = {2, left, 0, 0};
size_t total_len = 0, str_width, str_height;
for(unsigned int i = 0; i < strings.size(); i++)
for(unsigned int i = 0; i < strings.size(); i++)
total_len += string_length(strings[i], style);
total_len = total_len * 12;
str_width = s_sqrt(total_len) + 20;

View File

@@ -587,7 +587,7 @@ void cPict::drawPresetTer(short num, rectangle to_rect){
std::shared_ptr<sf::Texture> from_gw = getSheet(SHEET_TER, num / 50);
num = num % 50;
rectangle from_rect = calc_rect(num % 10, num / 10);
if(to_rect.right - to_rect.left > 28)
if(to_rect.right - to_rect.left > 28)
to_rect.inset(4,0);
rect_draw_some_item(*from_gw, from_rect, *inWindow, to_rect);
}