[packages/qemu] patch vga bios to support additional widescreen modes (1600x1000, 1600x900). it looks better on full

pluto pluto at pld-linux.org
Sun Sep 23 19:44:19 CEST 2012


commit d90027067df523cf21065ecf75ec8ea2bc715cf6
Author: Paweł Sikora <pawel.sikora at agmk.net>
Date:   Sun Sep 23 19:42:17 2012 +0200

    patch vga bios to support additional widescreen modes (1600x1000, 1600x900). it looks better on fullscreen on some laptops.

 qemu.spec                 |  8 ++++++++
 vgabios-widescreens.patch | 11 +++++++++++
 2 files changed, 19 insertions(+)
---
diff --git a/qemu.spec b/qemu.spec
index 7c3e124..2181bec 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -22,6 +22,7 @@ Group:		Applications/Emulators
 Source0:	http://wiki.qemu.org/download/%{name}-%{version}.tar.bz2
 # Source0-md5:	78eb1e984f4532aa9f2bdd3c127b5b61
 Patch0:		%{name}-cflags.patch
+Patch1:		vgabios-widescreens.patch
 Patch6:		%{name}-nosdlgui.patch
 # Proof of concept, for reference, do not remove
 Patch8:		%{name}-kde_virtual_workspaces_hack.patch
@@ -273,6 +274,7 @@ This package provides the system emulator for xtensa.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 %{?with_nosdlgui:%patch6 -p1}
 #patch8 -p1
 %patch17 -p0
@@ -294,6 +296,9 @@ ln -s ../error.h qapi/error.h
 	--interp-prefix=%{_libdir}/%{name}
 %{__make} V=1
 
+# rebuild patched vesa tables with additional widescreen modes.
+%{__make} -C roms/vgabios stdvga-bios
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -309,6 +314,9 @@ EOF
 # already packaged
 rm -rf $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
 
+# install patched vesa tables with additional widescreen modes.
+install -m 644 roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
diff --git a/vgabios-widescreens.patch b/vgabios-widescreens.patch
new file mode 100644
index 0000000..19541a1
--- /dev/null
+++ b/vgabios-widescreens.patch
@@ -0,0 +1,11 @@
+--- qemu-1.1.0/roms/vgabios/vbetables-gen.c.orig	2012-06-05 11:08:17.000000000 +0200
++++ qemu-1.1.0/roms/vgabios/vbetables-gen.c	2012-09-23 17:17:34.709685781 +0200
+@@ -76,6 +76,8 @@
+ { 2560, 1600, 16                     , 0x18a},
+ { 2560, 1600, 24                     , 0x18b},
+ { 2560, 1600, 32                     , 0x18c},
++{ 1600,  900, 24                     , 0x18d},
++{ 1600, 1000, 24                     , 0x18e},
+ { 0, },
+ };
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qemu.git/commitdiff/d90027067df523cf21065ecf75ec8ea2bc715cf6



More information about the pld-cvs-commit mailing list