intel_extreme: Store current display mode on each port

This commit is contained in:
Alexander von Gluck IV 2015-11-12 16:44:04 -06:00
parent eb56837dfb
commit 39f61d2190
2 changed files with 4 additions and 7 deletions

View File

@ -263,9 +263,8 @@ AnalogPort::SetDisplayMode(display_mode* target, uint32 colorMode)
// Program target display mode
fDisplayPipe->Enable(target, _PortRegister());
// XXX: Crashes?
// Set fCurrentMode to our set display mode
//memcpy(fCurrentMode, target, sizeof(display_mode));
memcpy(&fCurrentMode, target, sizeof(display_mode));
return B_OK;
}
@ -574,9 +573,8 @@ LVDSPort::SetDisplayMode(display_mode* target, uint32 colorMode)
}
#endif
// XXX: Crashes?
// Set fCurrentMode to our set display mode
//memcpy(fCurrentMode, target, sizeof(display_mode));
memcpy(&fCurrentMode, target, sizeof(display_mode));
return B_OK;
}
@ -662,9 +660,8 @@ DigitalPort::SetDisplayMode(display_mode* target, uint32 colorMode)
// Program target display mode
fDisplayPipe->Enable(target, _PortRegister());
// XXX: Crashes?
// Set fCurrentMode to our set display mode
//memcpy(fCurrentMode, target, sizeof(display_mode));
memcpy(&fCurrentMode, target, sizeof(display_mode));
return B_OK;
}

View File

@ -77,7 +77,7 @@ static status_t _GetI2CSignals(void* cookie, int* _clock,
static status_t _SetI2CSignals(void* cookie, int clock,
int data);
display_mode* fCurrentMode;
display_mode fCurrentMode;
DisplayPipe* fDisplayPipe;