Module: wine
Branch: master
Commit: 7c684cc81ceab2431db3e425645a1d5f0b60dae9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7c684cc81ceab2431db3e4256…
Author: Huw Davies <huw(a)codeweavers.com>
Date: Tue Feb 25 15:53:10 2014 +0000
wineps: Return 32 even for monochrome printers.
Returning 1 led to CreateCompatibleBitmap producing 1 bpp bitmaps, which is not correct.
---
dlls/wineps.drv/init.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/wineps.drv/init.c b/dlls/wineps.drv/init.c
index ec98f04..fde65c2 100644
--- a/dlls/wineps.drv/init.c
+++ b/dlls/wineps.drv/init.c
@@ -503,7 +503,9 @@ static INT PSDRV_GetDeviceCaps( PHYSDEV dev, INT cap )
case DESKTOPVERTRES:
return physDev->vertRes;
case BITSPIXEL:
- return (physDev->pi->ppd->ColorDevice != CD_False) ? 32 : 1;
+ /* Although Windows returns 1 for monochrome printers, we want
+ CreateCompatibleBitmap to provide something other than 1 bpp */
+ return 32;
case PLANES:
return 1;
case NUMBRUSHES:
Module: wine
Branch: master
Commit: 964c7d730587aa45427b2bae2bd196a73e0a8812
URL: http://source.winehq.org/git/wine.git/?a=commit;h=964c7d730587aa45427b2bae2…
Author: Nikolay Sivov <nsivov(a)codeweavers.com>
Date: Tue Feb 25 12:12:43 2014 +0400
programs: Added stub wevtutil tool.
---
configure | 2 ++
configure.ac | 1 +
programs/wevtutil/Makefile.in | 5 +++++
programs/wevtutil/main.c | 33 +++++++++++++++++++++++++++++++++
4 files changed, 41 insertions(+)
diff --git a/configure b/configure
index a38957f..39f0213 100755
--- a/configure
+++ b/configure
@@ -1357,6 +1357,7 @@ enable_termsv
enable_uninstaller
enable_unlodctr
enable_view
+enable_wevtutil
enable_wineboot
enable_winebrowser
enable_winecfg
@@ -17338,6 +17339,7 @@ wine_fn_config_program termsv enable_termsv install
wine_fn_config_program uninstaller enable_uninstaller install,po
wine_fn_config_program unlodctr enable_unlodctr install
wine_fn_config_program view enable_view install,po
+wine_fn_config_program wevtutil enable_wevtutil install
wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
wine_fn_config_program winebrowser enable_winebrowser install
wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
diff --git a/configure.ac b/configure.ac
index 3574343..540d5fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3345,6 +3345,7 @@ WINE_CONFIG_PROGRAM(termsv,,[install])
WINE_CONFIG_PROGRAM(uninstaller,,[install,po])
WINE_CONFIG_PROGRAM(unlodctr,,[install])
WINE_CONFIG_PROGRAM(view,,[install,po])
+WINE_CONFIG_PROGRAM(wevtutil,,[install])
WINE_CONFIG_PROGRAM(wineboot,,[install,installbin,manpage,po])
WINE_CONFIG_PROGRAM(winebrowser,,[install])
WINE_CONFIG_PROGRAM(winecfg,,[install,installbin,manpage,po])
diff --git a/programs/wevtutil/Makefile.in b/programs/wevtutil/Makefile.in
new file mode 100644
index 0000000..f6882b2
--- /dev/null
+++ b/programs/wevtutil/Makefile.in
@@ -0,0 +1,5 @@
+MODULE = wevtutil.exe
+APPMODE = -mconsole -municode
+
+C_SRCS = \
+ main.c
diff --git a/programs/wevtutil/main.c b/programs/wevtutil/main.c
new file mode 100644
index 0000000..bd95d1f
--- /dev/null
+++ b/programs/wevtutil/main.c
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2014 Nikolay Sivov for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(wevtutil);
+
+int wmain(int argc, WCHAR *argv[])
+{
+ int i;
+
+ WINE_FIXME("stub:");
+ for (i = 0; i < argc; i++)
+ WINE_FIXME(" %s", wine_dbgstr_w(argv[i]));
+ WINE_FIXME("\n");
+
+ return 0;
+}