Share

The Player Project

Tracker: Patches

5 Fixes Arithmetic exception in canvas.cc - ID: 2887375
Last Update: Settings changed ( rtv )

Currently camera.scale() is cast to an integer and then used as a divisor
in Canvas::DrawGlobalGrid. If camera.scale() is less than 1 this will cause
a Floating Point Exception. The provide patch changes the order of the cast
by performing floating point division and then casting the result to an
integer.


Richard Edwards ( richardedwards ) - 2009-10-27 18:51

5

Open

Accepted

Richard Vaughan

Stage

None

Public


Comments ( 2 )




Date: 2009-10-27 19:12
Sender: rtvProject Admin

The changes have been made in SVN trunk.
Thank you for your contribution.


Date: 2009-10-27 19:12
Sender: rtvProject Admin

applied in trunk - thanks for the fix.


Log in to comment.

Attached File ( 1 )

Filename Description Download
canvas_patch.txt Download

Changes ( 2 )

Field Old Value Date By
resolution_id None 2009-10-27 19:12 rtv
File Added 348425: canvas_patch.txt 2009-10-27 18:51 richardedwards