mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
fixed div/0 bug
svn path=/trunk/; revision=7461
This commit is contained in:
parent
583de66b3e
commit
94ecbd89db
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: dc.c,v 1.115 2004/01/04 21:26:59 weiden Exp $
|
||||
/* $Id: dc.c,v 1.116 2004/01/05 15:43:55 weiden Exp $
|
||||
*
|
||||
* DC.C - Device context functions
|
||||
*
|
||||
|
@ -2000,8 +2000,8 @@ DC_UpdateXforms(PDC dc)
|
|||
FLOAT scaleX, scaleY;
|
||||
|
||||
/* Construct a transformation to do the window-to-viewport conversion */
|
||||
scaleX = (FLOAT)dc->vportExtX / (FLOAT)dc->wndExtX;
|
||||
scaleY = (FLOAT)dc->vportExtY / (FLOAT)dc->wndExtY;
|
||||
scaleX = (dc->wndExtX ? (FLOAT)dc->vportExtX / (FLOAT)dc->wndExtX : 0.0);
|
||||
scaleY = (dc->wndExtY ? (FLOAT)dc->vportExtY / (FLOAT)dc->wndExtY : 0.0);
|
||||
xformWnd2Vport.eM11 = scaleX;
|
||||
xformWnd2Vport.eM12 = 0.0;
|
||||
xformWnd2Vport.eM21 = 0.0;
|
||||
|
|
Loading…
Reference in a new issue