File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -280,20 +280,19 @@ namespace udd {
280
280
int tmpY = y;
281
281
282
282
switch (rotation) {
283
- case DEGREE_0: return ;
283
+ case DEGREE_0: return ;
284
284
285
- case DEGREE_90: x = y;
286
- y = config. height - tmpX - 1 ;
287
- return ;
285
+ case DEGREE_90: x = config. width - tmpY - 1 ;
286
+ y = tmpX;
287
+ return ;
288
288
289
- case DEGREE_180: x = config.width - tmpX - 1 ;
290
- y = config.height - tmpY - 1 ;
291
- return ;
289
+ case DEGREE_180: x = config.width - tmpX - 1 ;
290
+ y = config.height - tmpY - 1 ;
291
+ return ;
292
292
293
- case DEGREE_270: x = config.width - tmpY - 1 ;
294
- y = tmpX;
295
-
296
- return ;
293
+ case DEGREE_270: x = tmpY;
294
+ y = config.height - tmpX - 1 ;
295
+ return ;
297
296
298
297
default :
299
298
fprintf (stderr, " not implemented yet, rotation degree=%d" , rotation);
You can’t perform that action at this time.
0 commit comments