Hello community,

here is the log from the commit of package xf86-video-vesa for openSUSE:Factory 
checked in at 2014-06-01 18:56:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xf86-video-vesa (Old)
 and      /work/SRC/openSUSE:Factory/.xf86-video-vesa.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xf86-video-vesa"

Changes:
--------
--- /work/SRC/openSUSE:Factory/xf86-video-vesa/xf86-video-vesa.changes  
2013-09-12 07:10:18.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.xf86-video-vesa.new/xf86-video-vesa.changes     
2014-06-01 18:56:07.000000000 +0200
@@ -1,0 +2,9 @@
+Thu May 22 13:39:00 UTC 2014 - [email protected]
+
+- u_Restore-palette-on-LeaveVT.patch:
+  Restore the Palette on LeaveVT - as it is done on CloseScreen() already
+  (bnc#719866).
+- u_Enable-DefaultRefresh-by-default.patch:
+  Update comments.
+
+-------------------------------------------------------------------

New:
----
  u_Restore-palette-on-LeaveVT.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xf86-video-vesa.spec ++++++
--- /var/tmp/diff_new_pack.uH920c/_old  2014-06-01 18:56:08.000000000 +0200
+++ /var/tmp/diff_new_pack.uH920c/_new  2014-06-01 18:56:08.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package xf86-video-vesa
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,7 @@
 Url:            http://xorg.freedesktop.org/
 Source0:        
http://xorg.freedesktop.org/releases/individual/driver/%{name}-%{version}.tar.bz2
 Patch0:         u_Enable-DefaultRefresh-by-default.patch
+Patch1:         u_Restore-palette-on-LeaveVT.patch
 #PATCH-FIX-UPSTREAM U_mibstore.patch -- removes obsolete include
 BuildRequires:  pkg-config
 BuildRequires:  pkgconfig(fontsproto)
@@ -52,6 +53,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %configure

++++++ u_Enable-DefaultRefresh-by-default.patch ++++++
--- /var/tmp/diff_new_pack.uH920c/_old  2014-06-01 18:56:08.000000000 +0200
+++ /var/tmp/diff_new_pack.uH920c/_new  2014-06-01 18:56:08.000000000 +0200
@@ -1,9 +1,11 @@
 From c8409ab331647ce19028f5424f0d9d3e8978c98e Mon Sep 17 00:00:00 2001
 From: Stefan Dirsch <[email protected]>
 Date: Wed, 11 Sep 2013 12:55:10 +0200
-Subject: [PATCH] Enable DefaultRefresh by default
+Subject: [PATCH] Use default refresh by default
+    
+This seems to be a feature that isn't tested well.
+Too many VBE 3.0  BIOSes are incorrectly implemented.
 
-Use DefaultRefresh by default due to VBE 3.0 often wrongly implemented.
 ---
  src/vesa.c | 8 +++++---
  1 file changed, 5 insertions(+), 3 deletions(-)
@@ -19,8 +21,8 @@
 -
 -    if (xf86ReturnOptValBool(pVesa->Options, OPTION_DFLT_REFRESH, FALSE))
 -      pVesa->defaultRefresh = TRUE;
-+    /*  Use DefaultRefresh by default due to VBE 3.0 often wrongly
-+     *  implemented.
++    /*  Use default refresh by default. Too many VBE 3.0
++     *   BIOSes are incorrectly implemented.
 +     */
 +    pVesa->defaultRefresh = xf86ReturnOptValBool(pVesa->Options,
 +                                                 OPTION_DFLT_REFRESH, TRUE);

++++++ u_Restore-palette-on-LeaveVT.patch ++++++
From: Egbert Eich <[email protected]>
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 <[email protected]>

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 <[email protected]>
---
 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
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to