Fix redraw issue with alpha drop shadow
Detail: s/StartUp - When the alpha drop shadow is in use, the foreground sprite is one row+column larger than normal, to allow the shadow to be feathered. However the drag box calculations weren't taking this into account, resulting in slightly wonky coordinates that can result in redraw issues in some situations (specifically, the screen area under the sprite's current location is filled with a plain colour if the bounding box overlaps the graphics window in a certain manner). Introduce orig_x_size and orig_y_size variables so that the drag box calculations can be correct regardless of how much padding is added to the image (with the limitation that the padding must be on the right / bottom) Also, fix the AtPointer support so that the pointer is placed at the centre of the input sprite, not the padded sprite. Admin: Tested on Raspberry Pi Resolves ticket #402, and similar corruption with animated windows (e.g. start a drag of a sprite which overlaps !Alarm's icon) Version 0.21. Tagged as 'DragASprit-0_21'
Showing with 37 additions and 37 deletions