register unlocking update: output dev det was lagging sometimes!

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7761 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rudolf Cornelissen
2004-06-06 13:30:38 +00:00
parent d50fbf8d02
commit bb089f09f7
@@ -63,6 +63,12 @@ status_t SET_DISPLAY_MODE(display_mode *mode_to_set)
/* See BOUNDS WARNING above... */
if (PROPOSE_DISPLAY_MODE(&target, &target, &target) == B_ERROR) return B_ERROR;
/* disable interrupts using the kernel driver */
interrupt_enable(false);
/* make sure the card's registers are unlocked (KB output select may lock!) */
nm_unlock();
/* if we have the flatpanel turned on modify visible part of mode if nessesary */
if (nm_general_output_read() & 0x02)
{
@@ -70,12 +76,6 @@ status_t SET_DISPLAY_MODE(display_mode *mode_to_set)
crt_only = false;
}
/* disable interrupts using the kernel driver */
interrupt_enable(false);
/* make sure the card's registers are unlocked (KB output select may lock!) */
nm_unlock();
/* find current DPMS state, then turn off screen(s) */
nm_crtc_dpms_fetch(&display, &h, &v);
nm_crtc_dpms(false, false, false);