Fix centering when an image exceeds display boundaries.

ply_frame_buffer_fill_centered() incorrectly used unsigned
arithmetic to calculate centering offsets.  If the image was
larger than the frame buffer, the calculated x and/or y offset
would be wrong, causing the image not to be displayed.

BUG=chromium-os:16765
TEST=manually display a 1366x800 image on a 1280x800 display

Change-Id: Ibcdd5cd27e6aee4d7ec0a0d6054867cabbc48a82
Reviewed-on: http://gerrit.chromium.org/gerrit/2917
Tested-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Luigi Semenzato <semenzato@chromium.org>
1 file changed