diff options
| author | Jonas Ask | 2009-11-18 00:40:32 +0000 |
|---|---|---|
| committer | Jonas Ask | 2009-11-18 00:40:32 +0000 |
| commit | cd7ec250a9f77dc1542d7d0ea1373c3320213369 (patch) | |
| tree | 639ac2c14077135aa371a2ad289c1120d0b4a7a9 /Config.cpp | |
| parent | 79a9d3cb7b49c03c1aaaa00765a949c9f4be8559 (diff) | |
| download | stonesense-cd7ec250a9f77dc1542d7d0ea1373c3320213369.tar.gz stonesense-cd7ec250a9f77dc1542d7d0ea1373c3320213369.tar.bz2 stonesense-cd7ec250a9f77dc1542d7d0ea1373c3320213369.tar.xz | |
There was an issue where rectangular (non-square) segment sizes would not rotate correctly. To fix this I forced square segments. I don't think people will miss this feature too much...
Diffstat (limited to 'Config.cpp')
| -rw-r--r-- | Config.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -65,16 +65,11 @@ void parseConfigLine( string line ){ string result = parseStrFromLine( "WINDOWED", line );
config.Fullscreen = (result == "NO");
}
- if( line.find("SEGMENTX") != -1){
- int value = parseIntFromLine( "SEGMENTX", line );
- if(value < 5) value = DEFAULT_SEGMENTSIZE_X;
+ if( line.find("SEGMENT") != -1){
+ int value = parseIntFromLine( "SEGMENT", line );
+ if(value < 5) value = DEFAULT_SEGMENTSIZE;
if(value > 100) value = 100;
config.segmentSize.x = value;
- }
- if( line.find("SEGMENTY") != -1){
- int value = parseIntFromLine( "SEGMENTY", line );
- if(value < 5) value = DEFAULT_SEGMENTSIZE_Y;
- if(value > 100) value = 100;
config.segmentSize.y = value;
}
if( line.find("SEGMENTZ") != -1){
|
