Module: wine
Branch: master
Commit: 59873a3748cb786fc74b26039e8375df6ac1b854
URL: http://source.winehq.org/git/wine.git/?a=commit;h=59873a3748cb786fc74b26039…
Author: Jacek Caban <jacek(a)codeweavers.com>
Date: Wed Nov 21 02:13:36 2007 +0100
hlink: Move common includes and function declarations to header file.
---
dlls/hlink/browse_ctx.c | 13 +------------
dlls/hlink/hlink_main.c | 16 ++--------------
dlls/hlink/hlink_private.h | 31 +++++++++++++++++++++++++++++++
dlls/hlink/link.c | 15 ++-------------
4 files changed, 36 insertions(+), 39 deletions(-)
diff --git a/dlls/hlink/browse_ctx.c b/dlls/hlink/browse_ctx.c
index f36fd2f..bd9b6fc 100644
--- a/dlls/hlink/browse_ctx.c
+++ b/dlls/hlink/browse_ctx.c
@@ -18,20 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include <stdarg.h>
-
-#define COBJMACROS
-
-#include "winerror.h"
-#include "windef.h"
-#include "winbase.h"
-#include "winuser.h"
-#include "ole2.h"
-#include "unknwn.h"
-#include "objidl.h"
+#include "hlink_private.h"
#include "wine/debug.h"
-#include "hlink.h"
WINE_DEFAULT_DEBUG_CHANNEL(hlink);
diff --git a/dlls/hlink/hlink_main.c b/dlls/hlink/hlink_main.c
index 69e3cef..a68585f 100644
--- a/dlls/hlink/hlink_main.c
+++ b/dlls/hlink/hlink_main.c
@@ -18,28 +18,16 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include <stdarg.h>
+#include "hlink_private.h"
-#define COBJMACROS
-
-#include "winerror.h"
-#include "windef.h"
-#include "winbase.h"
-#include "winuser.h"
#include "winreg.h"
-#include "ole2.h"
-#include "unknwn.h"
+#include "hlguids.h"
#include "wine/debug.h"
#include "wine/unicode.h"
-#include "hlink.h"
-#include "hlguids.h"
WINE_DEFAULT_DEBUG_CHANNEL(hlink);
-extern HRESULT WINAPI HLink_Constructor(IUnknown *, REFIID, LPVOID*);
-extern HRESULT WINAPI HLinkBrowseContext_Constructor(IUnknown *, REFIID, LPVOID*);
-
typedef HRESULT (CALLBACK *LPFNCREATEINSTANCE)(IUnknown*, REFIID, LPVOID*);
typedef struct
diff --git a/dlls/hlink/hlink_private.h b/dlls/hlink/hlink_private.h
new file mode 100644
index 0000000..0a765be
--- /dev/null
+++ b/dlls/hlink/hlink_private.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2007 Jacek Caban 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 <stdarg.h>
+
+#define COBJMACROS
+
+#include "winerror.h"
+#include "windef.h"
+#include "winbase.h"
+#include "winuser.h"
+#include "ole2.h"
+#include "hlink.h"
+
+extern HRESULT WINAPI HLink_Constructor(IUnknown*,REFIID,void**);
+extern HRESULT WINAPI HLinkBrowseContext_Constructor(IUnknown*,REFIID,void**);
diff --git a/dlls/hlink/link.c b/dlls/hlink/link.c
index c450951..e1eb6f9 100644
--- a/dlls/hlink/link.c
+++ b/dlls/hlink/link.c
@@ -18,25 +18,14 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include <stdarg.h>
+#include "hlink_private.h"
-#define COBJMACROS
-
-#include "winerror.h"
-#include "windef.h"
-#include "winbase.h"
-#include "winuser.h"
-#include "ole2.h"
-#include "unknwn.h"
-#include "objidl.h"
#include "shellapi.h"
+#include "hlguids.h"
#include "wine/debug.h"
#include "wine/unicode.h"
-#include "hlink.h"
-#include "hlguids.h"
-
WINE_DEFAULT_DEBUG_CHANNEL(hlink);
#define HLINK_SAVE_MAGIC 0x00000002
Module: wine
Branch: master
Commit: afb06a11842f38313e2a7a6f85db7ff9013d75f1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=afb06a11842f38313e2a7a6f8…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Sun Nov 18 17:28:32 2007 +0100
wined3d: Bool constants aren't vectors.
---
dlls/wined3d/glsl_shader.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 1cc3ec8..d9e525b 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -293,7 +293,7 @@ static void shader_glsl_load_constantsB(
for (i=0; i<max_constants; ++i) {
if (NULL == constants_set || constants_set[i]) {
- TRACE_(d3d_constants)("Loading constants %i: %i;\n", i, constants[i*4]);
+ TRACE_(d3d_constants)("Loading constants %i: %i;\n", i, constants[i]);
/* TODO: Benchmark and see if it would be beneficial to store the
* locations of the constants to avoid looking up each time */
@@ -301,7 +301,7 @@ static void shader_glsl_load_constantsB(
tmp_loc = GL_EXTCALL(glGetUniformLocationARB(programId, tmp_name));
if (tmp_loc != -1) {
/* We found this uniform name in the program - go ahead and send the data */
- GL_EXTCALL(glUniform1ivARB(tmp_loc, 1, &constants[i*4]));
+ GL_EXTCALL(glUniform1ivARB(tmp_loc, 1, &constants[i]));
checkGLcall("glUniform1ivARB");
}
}
Module: wine
Branch: master
Commit: 959212304dfaf0e7459374593b20b74fe22a0b57
URL: http://source.winehq.org/git/wine.git/?a=commit;h=959212304dfaf0e7459374593…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Tue Nov 20 21:14:10 2007 +0100
wined3d: Track vertex declaration changes on vertex shaders.
If an attribute has type D3DDECLTYPE_D3DCOLOR, the red and blue channels
are swizzled in the shader. Since the attribute is stored in the vertex
declaration and not the vertex shader, it can change by setting a new
vertex declaration. If this happens, we have to recompile the shader
with the swizzling of that specific attribute turned on or off.
---
dlls/wined3d/vertexdeclaration.c | 29 ++++++-
dlls/wined3d/vertexshader.c | 169 ++++++++++++++++++++++++++++++++++---
dlls/wined3d/wined3d_private.h | 17 ++++-
3 files changed, 199 insertions(+), 16 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=959212304dfaf0e745937…
Module: wine
Branch: master
Commit: c65dbabcf3604370e18089dea169c7a4c48c9ba4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c65dbabcf3604370e18089dea…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Date: Wed Nov 21 10:39:59 2007 +0100
winecfg: Some fixes for Norwegian translation.
---
programs/winecfg/No.rc | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/programs/winecfg/No.rc b/programs/winecfg/No.rc
index bc6be43..b7751bf 100644
--- a/programs/winecfg/No.rc
+++ b/programs/winecfg/No.rc
@@ -2,7 +2,7 @@
* WineCfg resources
* Norwegian Bokm�l Language Support
*
- * Copyright 2005-2006 Alexander N. S�rnes <alex(a)thehandofagony.com>
+ * Copyright 2005-2007 Alexander N. S�rnes <alex(a)thehandofagony.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -46,7 +46,7 @@ STYLE WS_CHILD | WS_DISABLED
FONT 8, "MS Shell Dlg"
BEGIN
GROUPBOX " Programminnstillinger ",IDC_STATIC, 8,4,244,240
- LTEXT "Wine kan herme etter forskjellige Windows-versjoner for hvert program. Denne fanen er koblet med bibliotek- og grafikkfanene, s�nn at du kan endre innstillinger for hele systemet eller enkelte program der ogs�.",
+ LTEXT "Wine kan etterligne forskjellige Windows-versjoner for hvert program. Denne fanen er koblet med bibliotek- og grafikkfanene, s�nn at du kan endre innstillinger for hele systemet eller enkelte program der ogs�.",
IDC_STATIC,15,20,227,30
CONTROL "Programmer",IDC_APP_LISTVIEW,"SysListView32",WS_BORDER | WS_TABSTOP | LVS_LIST | LVS_SINGLESEL | LVS_SHOWSELALWAYS,
15,50,230,150
@@ -69,9 +69,9 @@ BEGIN
LTEXT "Du kan velge � emulere et Windows-skrivebord, der alle vinduene er bundet i en virtuell skjerm, eller du kan f� vinduene til � oppf�re seg som andre programmer p� skrivebordet.",
IDC_STATIC,15,126,228,28
- LTEXT "Skrivebordsstrrelse:",IDC_DESKTOP_SIZE,15,168,44,8,WS_DISABLED
+ LTEXT "St�rrelse:",IDC_DESKTOP_SIZE,15,168,44,8,WS_DISABLED
LTEXT "X",IDC_DESKTOP_BY,108,168,8,8,WS_DISABLED
- CONTROL "Emuler et virtuelt skrivebord",IDC_ENABLE_DESKTOP,"Button",
+ CONTROL "Vis et virtuelt skrivebord",IDC_ENABLE_DESKTOP,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,15,153,230,10
EDITTEXT IDC_DESKTOP_WIDTH,64,168,40,12,ES_AUTOHSCROLL | ES_NUMBER | WS_DISABLED
@@ -83,7 +83,7 @@ BEGIN
COMBOBOX IDC_D3D_VSHADER_MODE,100,198,150,70,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
CONTROL "Tillat piksel-skyggelegger (hvis maskinvaren st�tter det)",IDC_D3D_PSHADER_MODE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,217,230,10
- GROUPBOX " Screen Resolution ",IDC_STATIC,8,242,244,25
+ GROUPBOX " Skjermoppl�sning (styrer skriftst�rrelse) ",IDC_STATIC,8,242,244,25
CONTROL "", IDC_RES_TRACKBAR, "msctls_trackbar32",WS_TABSTOP,12,250,187,15
EDITTEXT IDC_RES_DPIEDIT,204,250,23,13,ES_NUMBER|WS_TABSTOP
LTEXT "dpi",IDC_STATIC,235,252,10,8
@@ -99,7 +99,7 @@ BEGIN
LTEXT "Ny overstyring for bibliotek:",IDC_STATIC,16,58,100,8
COMBOBOX IDC_DLLCOMBO,16,68,140,14,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP | CBS_SORT | CBS_LOWERCASE
PUSHBUTTON "&Legg til",IDC_DLLS_ADDDLL, 164,68,82,13,BS_DEFPUSHBUTTON
- LTEXT "Eksisterende overstyringer:",IDC_STATIC,16,86,100,8
+ LTEXT "Gjeldende overstyringer:",IDC_STATIC,16,86,100,8
LISTBOX IDC_DLLS_LIST,16,96,140,140,WS_BORDER | WS_TABSTOP | WS_VSCROLL
PUSHBUTTON "R&ediger",IDC_DLLS_EDITDLL,164,96,82,14
PUSHBUTTON "Fje&rn",IDC_DLLS_REMOVEDLL,164,114,82,14
@@ -110,7 +110,7 @@ STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Rediger overstyring"
FONT 8, "MS Shell Dlg"
BEGIN
- GROUPBOX " Lastingsrekkeflge ",IDC_STATIC,8,4,94,66
+ GROUPBOX " Lastingsrekkef�lge ",IDC_STATIC,8,4,94,66
CONTROL "Inne&bygget (Wine)",IDC_RAD_BUILTIN,"Button", BS_AUTORADIOBUTTON | WS_GROUP,16,14,75,10
CONTROL "I&nnf�dt (Windows)",IDC_RAD_NATIVE,"Button", BS_AUTORADIOBUTTON,16,24,75,10
CONTROL "&Innebygget s� innf�dt",IDC_RAD_BUILTIN_NATIVE,"Button", BS_AUTORADIOBUTTON,16,34,75,10
@@ -179,7 +179,7 @@ IDD_DESKTOP_INTEGRATION DIALOG DISCARDABLE 0, 0, 260, 250
STYLE WS_CHILD | WS_DISABLED
FONT 8, "MS Shell Dlg"
BEGIN
- GROUPBOX " Appearance ",IDC_STATIC,8,4,244,106
+ GROUPBOX " Utseende ",IDC_STATIC,8,4,244,106
LTEXT "Tema:",IDC_STATIC,15,16,130,8
COMBOBOX IDC_THEME_THEMECOMBO,15,24,130,14,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Installer tema . . .",IDC_THEME_INSTALL,152,23,93,14
@@ -289,8 +289,8 @@ END
STRINGTABLE DISCARDABLE
BEGIN
- IDC_SYSPARAMS_BUTTON "Styrer bakgrunnen"
- IDC_SYSPARAMS_BUTTON_TEXT "Styrer tekst"
+ IDC_SYSPARAMS_BUTTON "Kontrollerbakgrunn"
+ IDC_SYSPARAMS_BUTTON_TEXT "Kontrollertekst"
IDC_SYSPARAMS_DESKTOP "Skrivebord"
IDC_SYSPARAMS_MENU "Menybakgrunn"
IDC_SYSPARAMS_MENU_TEXT "Menytekst"
@@ -305,5 +305,5 @@ BEGIN
IDC_SYSPARAMS_ACTIVE_TITLE_TEXT "Aktiv titteltekst"
IDC_SYSPARAMS_INACTIVE_TITLE "Inaktiv tittellinje"
IDC_SYSPARAMS_INACTIVE_TITLE_TEXT "Inaktiv titteltekst"
- IDC_SYSPARAMS_MSGBOX_TEXT "Message Box Text"
+ IDC_SYSPARAMS_MSGBOX_TEXT "Meldingsvindutekst"
END