Module: wine
Branch: master
Commit: 401e99b0c074af848379b2602df37fb1e6c7536b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=401e99b0c074af848379b2602…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Thu Jul 23 10:54:33 2009 +0200
wined3d: Remove some unnecessary code.
Now that we don't depend on activeContext and lastActiveRenderTarget to be
non-NULL this code can go.
---
dlls/wined3d/context.c | 52 ++-------------------------------------------
dlls/wined3d/swapchain.c | 16 --------------
2 files changed, 3 insertions(+), 65 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 02159fb..2e50634 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -467,59 +467,13 @@ void context_resource_released(IWineD3DDevice *iface, IWineD3DResource *resource
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
UINT i;
+ if (!This->d3d_initialized) return;
+
switch(type)
{
case WINED3DRTYPE_SURFACE:
{
- if (This->activeContext && (IWineD3DSurface *)resource == This->activeContext->current_rt)
- {
- IWineD3DSwapChainImpl *swapchain;
-
- TRACE("Last active render target destroyed.\n");
-
- /* Find a replacement surface for the currently active back
- * buffer. The context manager does not do NULL checks, so
- * switch to a valid target as long as the currently set
- * surface is still valid. Use the surface of the implicit
- * swpchain. If that is the same as the destroyed surface the
- * device is destroyed and the lastActiveRenderTarget member
- * shouldn't matter. */
- swapchain = This->swapchains ? (IWineD3DSwapChainImpl *)This->swapchains[0] : NULL;
- if (swapchain)
- {
- if (swapchain->backBuffer && swapchain->backBuffer[0] != (IWineD3DSurface *)resource)
- {
- TRACE("Activating primary back buffer.\n");
- ActivateContext(This, swapchain->backBuffer[0], CTXUSAGE_RESOURCELOAD);
- }
- else if (!swapchain->backBuffer && swapchain->frontBuffer != (IWineD3DSurface *)resource)
- {
- /* Single buffering environment */
- TRACE("Activating primary front buffer.\n");
-
- ActivateContext(This, swapchain->frontBuffer, CTXUSAGE_RESOURCELOAD);
- }
- else
- {
- /* Implicit render target destroyed, that means the
- * device is being destroyed whatever we set here, it
- * shouldn't matter. */
- TRACE("Device is being destroyed, setting current_rt to 0xdeadbabe.\n");
- This->activeContext->current_rt = (IWineD3DSurface *)0xdeadbabe;
- }
- }
- else
- {
- WARN("Render target set, but swapchain does not exist!\n");
-
- /* May happen during ddraw uninitialization. */
- This->activeContext->current_rt = (IWineD3DSurface *)0xdeadcafe;
- }
- }
- else if (This->d3d_initialized)
- {
- ActivateContext(This, NULL, CTXUSAGE_RESOURCELOAD);
- }
+ ActivateContext(This, NULL, CTXUSAGE_RESOURCELOAD);
for (i = 0; i < This->numContexts; ++i)
{
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index 27770ca..683640a 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -66,22 +66,6 @@ static void WINAPI IWineD3DSwapChainImpl_Destroy(IWineD3DSwapChain *iface, D3DCB
for (i = 0; i < This->num_contexts; ++i)
{
- if (This->context[i] == This->wineD3DDevice->activeContext)
- {
- IWineD3DSwapChainImpl *swapchain = (IWineD3DSwapChainImpl *)This->wineD3DDevice->swapchains[0];
-
- /* Avoid destroying the currently active context for non-implicit swapchains. */
- if (This != swapchain)
- {
- TRACE("Would destroy currently active context %p on a non-implicit swapchain.\n", This->context[i]);
-
- if (swapchain->backBuffer)
- ActivateContext(This->wineD3DDevice, swapchain->backBuffer[0], CTXUSAGE_RESOURCELOAD);
- else
- ActivateContext(This->wineD3DDevice, swapchain->frontBuffer, CTXUSAGE_RESOURCELOAD);
- }
- }
-
DestroyContext(This->wineD3DDevice, This->context[i]);
}
/* Restore the screen resolution if we rendered in fullscreen
Module: wine
Branch: master
Commit: 40af06a5768e9962b7b1f7b385ee2d170f1d414e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=40af06a5768e9962b7b1f7b38…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com>
Date: Thu Jul 23 10:01:51 2009 +0200
jscript: Add Dutch translations.
---
dlls/jscript/Makefile.in | 1 +
dlls/jscript/jscript_Nl.rc | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/dlls/jscript/Makefile.in b/dlls/jscript/Makefile.in
index 4324896..489567f 100644
--- a/dlls/jscript/Makefile.in
+++ b/dlls/jscript/Makefile.in
@@ -10,6 +10,7 @@ RC_SRCS = \
jscript_En.rc \
jscript_Fr.rc \
jscript_Lt.rc \
+ jscript_Nl.rc \
rsrc.rc
C_SRCS = \
diff --git a/dlls/jscript/jscript_Nl.rc b/dlls/jscript/jscript_Nl.rc
new file mode 100644
index 0000000..50cf92d
--- /dev/null
+++ b/dlls/jscript/jscript_Nl.rc
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2009 Paul Vriens
+ *
+ * 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 "resource.h"
+
+LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
+
+STRINGTABLE DISCARDABLE
+{
+ IDS_TO_PRIMITIVE "Fout bij het omzetten van het object naar een primitief type"
+ IDS_INVALID_CALL_ARG "Ongeldige procedure-aanroep of argument"
+ IDS_NO_PROPERTY "Dit object ondersteunt deze eigenschap of methode niet"
+ IDS_ARG_NOT_OPT "Argument is niet optioneel"
+ IDS_NOT_FUNC "Functie verwacht"
+ IDS_NOT_DATE "'[object]' is geen datum object"
+ IDS_NOT_NUM "Getal verwacht"
+ IDS_UNDEFINED "'|' is ongedefinieerd"
+ IDS_NOT_BOOL "Boolean object verwacht"
+ IDS_INVALID_LENGTH "Array lengte moet een eindig, positief geheel getal zijn"
+}
Module: wine
Branch: master
Commit: 47cbc3ae65f47a7c2d564caf642ec1ffb215e7a6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=47cbc3ae65f47a7c2d564caf6…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com>
Date: Wed Jul 22 22:12:12 2009 +0200
jscript: Update French translation.
---
dlls/jscript/jscript_Fr.rc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/jscript/jscript_Fr.rc b/dlls/jscript/jscript_Fr.rc
index 04d19ed..3d31d51 100644
--- a/dlls/jscript/jscript_Fr.rc
+++ b/dlls/jscript/jscript_Fr.rc
@@ -27,11 +27,14 @@ LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
{
+ IDS_TO_PRIMITIVE "Erreur lors de la conversion de l'objet vers un type primitif"
IDS_INVALID_CALL_ARG "Appel de procédure ou argument invalide"
IDS_NO_PROPERTY "Cet objet ne supporte pas cette propriété ou méthode"
IDS_ARG_NOT_OPT "Argument non optionnel"
+ IDS_NOT_FUNC "Fonction attendue"
IDS_NOT_DATE "« [objet] » n'est pas un objet de type date"
IDS_NOT_NUM "Nombre attendu"
+ IDS_UNDEFINED "« | » n'est pas défini"
IDS_NOT_BOOL "Booléen attendu"
IDS_INVALID_LENGTH "La longueur d'un tableau doit être un entier positif"
}