Skip to content

Commit

Permalink
updated 30 bit patch for dummy
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@13785 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 20, 2016
1 parent cfae02a commit 668bf06
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
20 changes: 17 additions & 3 deletions rpmbuild/0005-support-for-30-bit-depth-in-dummy-driver.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
From ad1c57a6135d95ead488619085a503f4ac297b7b Mon Sep 17 00:00:00 2001
From 210d6aff1eba0709da1dbd0ec0fdb89503315421 Mon Sep 17 00:00:00 2001
From: Antoine Martin <antoine@nagafix.co.uk>
Date: Tue, 20 Sep 2016 12:09:33 +0700
Date: Tue, 20 Sep 2016 22:34:57 +0700
Subject: [PATCH] support for 30 bit depth in dummy driver

This patch makes it possible to start the server using the dummy
Expand All @@ -9,9 +9,23 @@ The colormap size is changed from 256 to 1024 to prevent crashes.

Signed-off-by: Antoine Martin <antoine@nagafix.co.uk>
---
src/dummy.h | 2 +-
src/dummy_driver.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/dummy.h b/src/dummy.h
index c3fdd6e..0dd8906 100644
--- a/src/dummy.h
+++ b/src/dummy.h
@@ -68,7 +68,7 @@ typedef struct dummyRec
int overlay_offset;
int videoKey;
int interlace;
- dummy_colors colors[256];
+ dummy_colors colors[1024];
pointer* FBBase;
Bool (*CreateWindow)() ; /* wrapped CreateWindow */
Bool prop;
diff --git a/src/dummy_driver.c b/src/dummy_driver.c
index 737f11c..c84000f 100644
--- a/src/dummy_driver.c
Expand Down
5 changes: 4 additions & 1 deletion rpmbuild/xorg-x11-drv-dummy.el7.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Summary: Xorg X11 dummy video driver
Name: xorg-x11-drv-dummy
Version: 0.3.6
Release: 21.xpra2%{?dist}
Release: 21.xpra3%{?dist}
URL: http://www.x.org
License: MIT
Group: User Interface/X Hardware Support
Expand Down Expand Up @@ -60,6 +60,9 @@ rm -rf $RPM_BUILD_ROOT
%{driverdir}/dummy_drv.so

%changelog
* Tue Sep 20 2016 Antoine Martin <antoine@nagafix.co.uk> - 0.3.6-21.xpra3
- updated 30 bit patch

* Tue Sep 20 2016 Antoine Martin <antoine@nagafix.co.uk> - 0.3.6-21.xpra2
- add support for 30 bit depth

Expand Down
5 changes: 4 additions & 1 deletion rpmbuild/xorg-x11-drv-dummy.fc23.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Summary: Xorg X11 dummy video driver
Name: xorg-x11-drv-dummy
Version: 0.3.6
Release: 24.xpra2%{?dist}
Release: 24.xpra3%{?dist}
URL: http://www.x.org
License: MIT
Group: User Interface/X Hardware Support
Expand Down Expand Up @@ -62,6 +62,9 @@ rm -rf $RPM_BUILD_ROOT
%{driverdir}/dummy_drv.so

%changelog
* Tue Sep 20 2016 Antoine Martin <antoine@nagafix.co.uk> - 0.3.6-24.xpra3
- updated 30 bit patch

* Tue Sep 20 2016 Antoine Martin <antoine@nagafix.co.uk> - 0.3.6-24.xpra2
- add support for 30 bit depth

Expand Down
5 changes: 4 additions & 1 deletion rpmbuild/xorg-x11-drv-dummy.fc24.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Summary: Xorg X11 dummy video driver
Name: xorg-x11-drv-dummy
Version: 0.3.6
Release: 25.xpra2%{?dist}
Release: 25.xpra3%{?dist}
URL: http://www.x.org
License: MIT
Group: User Interface/X Hardware Support
Expand Down Expand Up @@ -62,6 +62,9 @@ rm -rf $RPM_BUILD_ROOT
%{driverdir}/dummy_drv.so

%changelog
* Tue Sep 20 2016 Antoine Martin <antoine@nagafix.co.uk> - 0.3.6-25.xpra3
- updated 30 bit patch

* Tue Sep 20 2016 Antoine Martin <antoine@nagafix.co.uk> - 0.3.6-25.xpra2
- add support for 30 bit depth

Expand Down

0 comments on commit 668bf06

Please sign in to comment.