intel_extreme: Store current display mode on each port
This commit is contained in:
@@ -263,9 +263,8 @@ AnalogPort::SetDisplayMode(display_mode* target, uint32 colorMode)
|
|||||||
// Program target display mode
|
// Program target display mode
|
||||||
fDisplayPipe->Enable(target, _PortRegister());
|
fDisplayPipe->Enable(target, _PortRegister());
|
||||||
|
|
||||||
// XXX: Crashes?
|
|
||||||
// Set fCurrentMode to our set display mode
|
// Set fCurrentMode to our set display mode
|
||||||
//memcpy(fCurrentMode, target, sizeof(display_mode));
|
memcpy(&fCurrentMode, target, sizeof(display_mode));
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
@@ -574,9 +573,8 @@ LVDSPort::SetDisplayMode(display_mode* target, uint32 colorMode)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// XXX: Crashes?
|
|
||||||
// Set fCurrentMode to our set display mode
|
// Set fCurrentMode to our set display mode
|
||||||
//memcpy(fCurrentMode, target, sizeof(display_mode));
|
memcpy(&fCurrentMode, target, sizeof(display_mode));
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
@@ -662,9 +660,8 @@ DigitalPort::SetDisplayMode(display_mode* target, uint32 colorMode)
|
|||||||
// Program target display mode
|
// Program target display mode
|
||||||
fDisplayPipe->Enable(target, _PortRegister());
|
fDisplayPipe->Enable(target, _PortRegister());
|
||||||
|
|
||||||
// XXX: Crashes?
|
|
||||||
// Set fCurrentMode to our set display mode
|
// Set fCurrentMode to our set display mode
|
||||||
//memcpy(fCurrentMode, target, sizeof(display_mode));
|
memcpy(&fCurrentMode, target, sizeof(display_mode));
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ static status_t _GetI2CSignals(void* cookie, int* _clock,
|
|||||||
static status_t _SetI2CSignals(void* cookie, int clock,
|
static status_t _SetI2CSignals(void* cookie, int clock,
|
||||||
int data);
|
int data);
|
||||||
|
|
||||||
display_mode* fCurrentMode;
|
display_mode fCurrentMode;
|
||||||
DisplayPipe* fDisplayPipe;
|
DisplayPipe* fDisplayPipe;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user