Module: wine
Branch: master
Commit: 03389acc304e55f19bf5e5ddb7f340c3ad7582ed
URL: http://source.winehq.org/git/wine.git/?a=commit;h=03389acc304e55f19bf5e5ddb…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Fri Jan 12 18:57:26 2007 +0100
wined3d: Do not free regularily locked surfaces.
---
dlls/wined3d/surface.c | 13 +++++++++++++
dlls/wined3d/wined3d_private.h | 2 ++
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index de263b9..ca9900a 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -824,6 +824,19 @@ static HRESULT WINAPI IWineD3DSurfaceImp
}
}
+ /* Performance optimization: Count how often a surface is locked, if it is locked regularly do not throw away the system memory copy.
+ * This avoids the need to download the surface from opengl all the time. The surface is still downloaded if the opengl texture is
+ * changed
+ */
+ if(!(This->Flags & SFLAG_DYNLOCK)) {
+ This->lockCount++;
+ /* MAXLOCKCOUNT is defined in wined3d_private.h */
+ if(This->lockCount > MAXLOCKCOUNT) {
+ TRACE("Surface is locked regularily, not freeing the system memory copy any more\n");
+ This->Flags |= SFLAG_DYNLOCK;
+ }
+ }
+
TRACE("returning memory@%p, pitch(%d) dirtyfied(%d)\n", pLockedRect->pBits, pLockedRect->Pitch, This->Flags & SFLAG_DIRTY ? 0 : 1);
This->Flags |= SFLAG_LOCKED;
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 5fe7c71..6d99657 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -984,6 +984,8 @@ struct IWineD3DSurfaceImpl
RECT lockedRect;
RECT dirtyRect;
+ int lockCount;
+#define MAXLOCKCOUNT 50 /* After this amount of locks do not free the sysmem copy */
glDescriptor glDescription;
Module: wine
Branch: master
Commit: c38c5fb2fc254e37da51a576e0159c685095d96e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c38c5fb2fc254e37da51a576e…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl>
Date: Mon Jan 15 09:32:28 2007 +0100
msi: Add Polish translation.
---
dlls/msi/msi.rc | 1 +
dlls/msi/msi_Pl.rc | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/msi.rc b/dlls/msi/msi.rc
index 822a531..ed818ad 100644
--- a/dlls/msi/msi.rc
+++ b/dlls/msi/msi.rc
@@ -39,6 +39,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#include "msi_Ko.rc"
#include "msi_Nl.rc"
#include "msi_No.rc"
+#include "msi_Pl.rc"
#include "msi_Pt.rc"
#include "msi_Ru.rc"
#include "msi_Tr.rc"
diff --git a/dlls/msi/msi_Pl.rc b/dlls/msi/msi_Pl.rc
new file mode 100644
index 0000000..00eb535
--- /dev/null
+++ b/dlls/msi/msi_Pl.rc
@@ -0,0 +1,35 @@
+/*
+ * Polish resources for MSI
+ *
+ * Copyright 2005 Mike McCormack
+ * Copyright 2007 Mikolaj Zalewski
+ *
+ * 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
+ */
+
+LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
+
+STRINGTABLE DISCARDABLE
+{
+ 4 "Nie uda�o si� otworzy� wybranego pakietu instalacyjnego. Sprawd� czy �cie�ka jest poprawna i spr�buj ponownie."
+ 5 "�cie�ka '%s' nie zosta�a odnaleziona"
+ 9 "w�� dysk '%s'"
+ 10 "z�e parametry"
+ 11 "wprowad� sice�k� do folderu zawieraj�cego '%s'"
+ 12 "�r�d�o danych zawieraj�ce ��dan� funkcj� jest niedost�pne"
+ 13 "dysk siecowy zawieraj�cy ��dan� funckje jest niedost�pny"
+ 14 "funkcja z:"
+ 15 "wybierz folder zawieraj�cy '%s'"
+}
Module: wine
Branch: master
Commit: 5723151c04ffaae9ecd965c188e29c9cdb923914
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5723151c04ffaae9ecd965c18…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl>
Date: Sat Jan 13 23:51:55 2007 +0100
wordpad: Add Polish translation.
---
programs/wordpad/Pl.rc | 67 ++++++++++++++++++++++++++++++++++++++++++++++
programs/wordpad/rsrc.rc | 1 +
2 files changed, 68 insertions(+), 0 deletions(-)
diff --git a/programs/wordpad/Pl.rc b/programs/wordpad/Pl.rc
new file mode 100644
index 0000000..3f0bf06
--- /dev/null
+++ b/programs/wordpad/Pl.rc
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2004 by Krzysztof Foltman
+ * Copyright 2006 by Mikolaj Zalewski
+ *
+ * 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
+ */
+
+LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
+
+MAINMENU MENU DISCARDABLE
+BEGIN
+ POPUP "&Plik"
+ BEGIN
+ MENUITEM "&Nowy\tCtrl+N", ID_FILE_NEW
+ MENUITEM "&Otw�rz\tCtrl+O", ID_FILE_OPEN
+ MENUITEM "&Zapisz\tCtrl+S", ID_FILE_SAVE
+ MENUITEM SEPARATOR
+ MENUITEM "Za&ko�cz", ID_FILE_EXIT
+ END
+ POPUP "&Edycja"
+ BEGIN
+ MENUITEM "&Cofnij\tCtrl+Z", ID_EDIT_UNDO
+ MENUITEM "&Powt�rz\tCtrl+Y", ID_EDIT_REDO
+ MENUITEM "&Zaznacz wszystko\tCtrl+A", ID_EDIT_SELECTALL
+ MENUITEM SEPARATOR
+ MENUITEM "Wy&tnij\tCtrl+X", ID_EDIT_CUT
+ MENUITEM "&Kopiuj\tCtrl+C", ID_EDIT_COPY
+ MENUITEM SEPARATOR
+ MENUITEM "Tylko do &odczytu", ID_EDIT_READONLY
+ MENUITEM "&Zmodifykowany", ID_EDIT_MODIFIED
+ MENUITEM SEPARATOR
+ POPUP "&Dodatki"
+ BEGIN
+ MENUITEM "Zaznaczenie - &info", ID_EDIT_SELECTIONINFO
+ MENUITEM "&Format znak�w", ID_EDIT_CHARFORMAT
+ MENUITEM "&Standardowy format znak�w", ID_EDIT_DEFCHARFORMAT
+ MENUITEM "Format aka&pitu", ID_EDIT_PARAFORMAT
+ MENUITEM "&Pobie� tekst", ID_EDIT_GETTEXT
+ END
+ END
+ POPUP "F&ormat"
+ BEGIN
+ POPUP "&T�o"
+ BEGIN
+ MENUITEM "&System\tCtrl+1", ID_BACK_1
+ MENUITEM "&PostThat (��ty)\tCtrl+2", ID_BACK_2
+ END
+ POPUP "&Wyr�wnanie"
+ BEGIN
+ MENUITEM "Do &lewej\tCtrl+L", ID_ALIGN_LEFT
+ MENUITEM "&Wy�rodkowanie\tCtrl+E", ID_ALIGN_CENTER
+ MENUITEM "Do &Prawej\tCtrl+R", ID_ALIGN_RIGHT
+ END
+ END
+END
diff --git a/programs/wordpad/rsrc.rc b/programs/wordpad/rsrc.rc
index ca3bf51..a4c57e5 100644
--- a/programs/wordpad/rsrc.rc
+++ b/programs/wordpad/rsrc.rc
@@ -83,5 +83,6 @@ IDB_TOOLBAR BITMAP "toolbar.bmp"
#include "Ko.rc"
#include "Nl.rc"
#include "No.rc"
+#include "Pl.rc"
#include "Ru.rc"
#include "Tr.rc"
Module: wine
Branch: master
Commit: 7b002a39b88dee3047db2ae7f06fb303faf91868
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7b002a39b88dee3047db2ae7f…
Author: Rob Shearman <rob(a)codeweavers.com>
Date: Fri Jan 12 19:16:49 2007 -0600
wininet: Allow a NULL value to be passed into HTTP_ProcessHeader
instead of crashing so that when used with the replace flag it will
delete an existing value.
---
dlls/wininet/http.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 07dc596..9a2e739 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -2873,6 +2873,8 @@ static BOOL HTTP_ProcessHeader(LPWININET
return HTTP_InsertCustomHeader(lpwhr, &hdr);
}
+ /* no value to delete */
+ else return TRUE;
if (dwModifier & HTTP_ADDHDR_FLAG_REQ)
lphttpHdr->wFlags |= HDR_ISREQUEST;