Changeset 24655

Show
Ignore:
Timestamp:
11/22/08 21:07:42 (7 weeks ago)
Author:
fujidig
Message:

grect の width, height が負数のときエラーになっていたのを修正

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/hsp-on-js/trunk/gui-trial.js

    r24653 r24655  
    760760                        y = y ? y.toIntValue()._value : 0; 
    761761                        rad = rad ? rad.toDoubleValue()._value : 0; 
    762                         width = width ? width.toIntValue()._value : screen.copyWidth; 
    763                         height = height ? height.toIntValue()._value : screen.copyHeight; 
     762                        width = width ? Math.abs(width.toIntValue()._value) : screen.copyWidth; 
     763                        height = height ? Math.abs(height.toIntValue()._value) : screen.copyHeight; 
    764764                        var ctx = screen.ctx; 
    765765                        ctx.save();