Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory
xf86-video-vesa
u_Restore-palette-on-LeaveVT.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File u_Restore-palette-on-LeaveVT.patch of Package xf86-video-vesa
From: Egbert Eich <eich@freedesktop.org> Date: Thu Sep 22 16:47:19 2011 +0200 Subject: [PATCH]Restore palette on LeaveVT() Patch-mainline: to be upstreamed Git-commit: 46bbbae9b7e714c472db4c36733096772a17d86f Git-repo: ssh://git.freedesktop.org/git/xorg/driver/xf86-video-vesa References: bnc#719866 Signed-off-by: Egbert Eich <eich@suse.com> Use BIOS function to restore palette on LeaveVT(). This fixes messed up colors in text mode on VT switch. It is already done in CloseScreen(). Signed-off-by: Egbert Eich <eich@freedesktop.org> --- src/vesa.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vesa.c b/src/vesa.c index 53854b1..dc308f4 100644 --- a/src/vesa.c +++ b/src/vesa.c @@ -1127,7 +1127,12 @@ static void VESALeaveVT(VT_FUNC_ARGS_DECL) { SCRN_INFO_PTR(arg); + VESAPtr pVesa = VESAGetRec(pScrn); + VESASaveRestore(pScrn, MODE_RESTORE); + if (pVesa->savedPal) + VBESetGetPaletteData(pVesa->pVbe, TRUE, 0, 256, + pVesa->savedPal, FALSE, TRUE); } static Bool
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor