Added patch to allow 320x240 as supported resolution in desktop mode.

This commit is contained in:
Sebastian Lackner 2016-04-01 01:27:54 +02:00
parent ca69ea6ddf
commit 8bed2773c4
3 changed files with 47 additions and 0 deletions

View File

@ -374,6 +374,7 @@ patch_enable_all ()
enable_winex11_CandidateWindowPos="$1"
enable_winex11_Clipboard_HTML="$1"
enable_winex11_DefaultDisplayFrequency="$1"
enable_winex11_Desktop_Resolution="$1"
enable_winex11_Window_Groups="$1"
enable_winex11_Window_Style="$1"
enable_winex11_XEMBED="$1"
@ -1297,6 +1298,9 @@ patch_enable ()
winex11-DefaultDisplayFrequency)
enable_winex11_DefaultDisplayFrequency="$2"
;;
winex11-Desktop_Resolution)
enable_winex11_Desktop_Resolution="$2"
;;
winex11-Window_Groups)
enable_winex11_Window_Groups="$2"
;;
@ -7416,6 +7420,21 @@ if test "$enable_winex11_DefaultDisplayFrequency" -eq 1; then
) >> "$patchlist"
fi
# Patchset winex11-Desktop_Resolution
# |
# | This patchset fixes the following Wine bugs:
# | * [#32979] Allow 320x240 as supported resolution in desktop mode
# |
# | Modified files:
# | * dlls/winex11.drv/desktop.c
# |
if test "$enable_winex11_Desktop_Resolution" -eq 1; then
patch_apply winex11-Desktop_Resolution/0001-winex11-Add-320x240-as-supported-resolution-in-deskt.patch
(
echo '+ { "Michael Müller", "winex11: Add 320x240 as supported resolution in desktop mode.", 1 },';
) >> "$patchlist"
fi
# Patchset winex11-Window_Groups
# |
# | This patchset fixes the following Wine bugs:

View File

@ -0,0 +1,27 @@
From 268ba3b1b3d37eed28e68ec6a64c568d8de7cde2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Thu, 31 Mar 2016 22:33:14 +0200
Subject: winex11: Add 320x240 as supported resolution in desktop mode.
---
dlls/winex11.drv/desktop.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/desktop.c b/dlls/winex11.drv/desktop.c
index 72916c8..034d7f3 100644
--- a/dlls/winex11.drv/desktop.c
+++ b/dlls/winex11.drv/desktop.c
@@ -37,8 +37,8 @@ static unsigned int dd_mode_count;
static unsigned int max_width;
static unsigned int max_height;
-static const unsigned int widths[] = {320, 400, 512, 640, 800, 1024, 1152, 1280, 1280, 1400, 1600};
-static const unsigned int heights[] = {200, 300, 384, 480, 600, 768, 864, 960, 1024, 1050, 1200};
+static const unsigned int widths[] = {320, 320, 400, 512, 640, 800, 1024, 1152, 1280, 1280, 1400, 1600};
+static const unsigned int heights[] = {200, 240, 300, 384, 480, 600, 768, 864, 960, 1024, 1050, 1200};
#define NUM_DESKTOP_MODES (sizeof(widths) / sizeof(widths[0]))
#define _NET_WM_STATE_REMOVE 0
--
2.7.1

View File

@ -0,0 +1 @@
Fixes: [32979] Allow 320x240 as supported resolution in desktop mode