Changes between Version 1 and Version 2 of Ticket #10748, comment 12
- Timestamp:
- Nov 26, 2018, 4:08:42 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10748, comment 12
v1 v2 41 41 // low resolution coordinates 42 42 43 ...43 # ... 44 44 45 45 if (_mirrorX != celObj._mirrorX && _celInfo.type == kCelTypePic) { 46 46 Common::Rect temp(_insetRect); 47 47 48 ... 48 if (!scaleX.isOne()) { 49 mulinc(temp, scaleX, Ratio()); 50 temp.right -= 1; 51 } 52 53 CelObjPic *celObjPic = dynamic_cast<CelObjPic *>(_celObj.get()); 54 if (celObjPic == nullptr) { 55 error("Expected a CelObjPic"); 56 } 57 temp.translate(celObjPic->_relativePosition.x - (originX * scaleX).toInt(), celObjPic->_relativePosition.y - (celObj._origin.y * scaleY).toInt()); 49 58 50 59 // TODO: This is weird. … … 56 65 }}} 57 66 58 That comment could be interesting.67 That TODO comment could be interesting. 59 68 \\ 60 69 \\ … … 70 79 If you take the screen width, subtract the width of a full screen image, and subtract 1, you get -1. 71 80 81 scaleX.isOne() is true, so the little IF block that decrements temp.right is not happening. 82 \\ 83 \\ 72 84 After some tinkering with forced values of deltaX exclusively for that big screenItem, I realized ALL these items were elements of the Pic. The small ones had been carved out, leaving black silhouettes in the big one. Stuff hero could walk behind. Priority. 73 85