Skip to content

Commit e76c04d

Browse files
committed
update setWindow to account for invalid degree
1 parent 1aaca18 commit e76c04d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/controller/Display.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace udd {
2323
case 180: return DEGREE_180;
2424
case 270: return DEGREE_270;
2525

26+
2627
default:
2728
fprintf(stderr, "Invalid rotation specified\n");
2829
return DEGREE_INVALID;
@@ -321,6 +322,9 @@ namespace udd {
321322
swap(int, y1, y2);
322323
break;
323324
}
325+
default: {
326+
break;
327+
}
324328
}
325329

326330

0 commit comments

Comments
 (0)