* check for possible division by zero (just had a crash with divide error
on another machine, don't know if this was really the cause, but it should be checked nevertheless I guess) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22373 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ab88b095f2
commit
2a88281a61
@ -152,6 +152,9 @@ Radeon_ProposeDisplayMode(shared_info *si, crtc_info *crtc,
|
||||
SHOW_FLOW( 4, "X %d, virtX %d", target->timing.h_display, target->virtual_width);
|
||||
SHOW_FLOW( 4, "fpRes %dx%d", flatpanel->panel_xres, flatpanel->panel_yres);
|
||||
|
||||
if (target->timing.h_total * target->timing.v_total == 0)
|
||||
return B_BAD_VALUE;
|
||||
|
||||
// save refresh rate - we want to leave this (artifical) value untouched
|
||||
// don't use floating point, we are in kernel mode
|
||||
target_refresh =
|
||||
|
Loading…
Reference in New Issue
Block a user