Module: wine
Branch: master
Commit: 609b91a6b221dcb6d4092ab618320042b24456a2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=609b91a6b221dcb6d4092ab61…
Author: Paul Chitescu <paulc(a)voip.null.ro>
Date: Tue Jun 23 14:47:26 2009 +0300
clock: Romanian translation.
---
programs/clock/Makefile.in | 1 +
programs/clock/Ro.rc | 76 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 77 insertions(+), 0 deletions(-)
diff --git a/programs/clock/Makefile.in b/programs/clock/Makefile.in
index 093ddef..36cd884 100644
--- a/programs/clock/Makefile.in
+++ b/programs/clock/Makefile.in
@@ -27,6 +27,7 @@ RC_SRCS = \
No.rc \
Pl.rc \
Pt.rc \
+ Ro.rc \
Ru.rc \
Si.rc \
Sk.rc \
diff --git a/programs/clock/Ro.rc b/programs/clock/Ro.rc
new file mode 100644
index 0000000..c1d58ff
--- /dev/null
+++ b/programs/clock/Ro.rc
@@ -0,0 +1,76 @@
+/*
+ * Clock (Romanian resources)
+ *
+ * Copyright 2009 Paul Chitescu
+ *
+ * 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 "clock_res.h"
+
+#pragma code_page(65001)
+
+LANGUAGE LANG_ROMANIAN, SUBLANG_DEFAULT
+
+MAIN_MENU MENU
+{
+ POPUP "&Proprietăți" {
+ MENUITEM "Ana&logic", IDM_ANALOG
+ MENUITEM "Digi&tal", IDM_DIGITAL
+ MENUITEM SEPARATOR
+ MENUITEM "&Font...", IDM_FONT
+ MENUITEM SEPARATOR
+ MENUITEM "Fără &bara de titlu", IDM_NOTITLE
+ MENUITEM SEPARATOR
+ MENUITEM "&Secunde", IDM_SECONDS
+ MENUITEM "&Data", IDM_DATE
+ MENUITEM SEPARATOR
+ MENUITEM "T&otdeauna deasupra", IDM_ONTOP
+ }
+ POPUP "Inf&ormații" {
+ MENUITEM "&Licența...", IDM_LICENSE
+ MENUITEM "&FĂRĂ GARANȚIE...", IDM_NOWARRANTY
+ MENUITEM "&Despre ceas...", IDM_ABOUT
+ }
+}
+
+STRINGTABLE DISCARDABLE
+{
+IDS_CLOCK, "Ceas"
+}
+
+STRINGTABLE DISCARDABLE LANGUAGE LANG_ROMANIAN, SUBLANG_DEFAULT
+{
+IDS_LICENSE_CAPTION, "LICENȚĂ"
+IDS_LICENSE,
+"This program 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.\n\
+This program 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.\n\
+You should have received a copy of the GNU Lesser General Public \
+License along with this program; if not, write to the Free Software \
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA"
+
+IDS_WARRANTY_CAPTION, "FĂRĂ GARANȚIE"
+IDS_WARRANTY,
+"This program 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."
+}
Module: wine
Branch: master
Commit: 444b7ac7e56672be2951cd09173eb673a4c2c127
URL: http://source.winehq.org/git/wine.git/?a=commit;h=444b7ac7e56672be2951cd091…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Mon Jun 22 16:35:05 2009 +0200
wined3d: Use a local parameter for the position fixup.
I don't like that I have to do this because the posFixup is in all
vertex programs, so its at the same position and could be loaded
globally. Unfortunately, there are only 256 env parameters usually,
which makes it impossible for any shader to use c256, even if it does
not use indirect addressing, and so we can't claim 256 constant
support.
---
dlls/wined3d/arb_program_shader.c | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index bb53455..3e28f3e 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -158,6 +158,7 @@ struct arb_vs_compiled_shader
GLuint prgId;
UINT int_consts[MAX_CONST_I];
char num_int_consts;
+ UINT pos_fixup;
};
struct recorded_instruction
@@ -419,14 +420,16 @@ static inline void shader_arb_ps_local_constants(IWineD3DDeviceImpl* deviceImpl)
static inline void shader_arb_vs_local_constants(IWineD3DDeviceImpl* deviceImpl)
{
IWineD3DStateBlockImpl* stateBlock;
- const WineD3D_GL_Info *gl_info;
+ const WineD3D_GL_Info *gl_info = &deviceImpl->adapter->gl_info;
unsigned char i;
struct shader_arb_priv *priv = deviceImpl->shader_priv;
const struct arb_vs_compiled_shader *gl_shader = priv->compiled_vprog;
+ /* Upload the position fixup */
+ GL_EXTCALL(glProgramLocalParameter4fvARB(GL_VERTEX_PROGRAM_ARB, gl_shader->pos_fixup, deviceImpl->posFixup));
+
if(gl_shader->num_int_consts == 0) return;
- gl_info = &deviceImpl->adapter->gl_info;
stateBlock = deviceImpl->stateBlock;
for(i = 0; i < MAX_CONST_I; i++)
@@ -471,9 +474,6 @@ static void shader_arb_load_constants(
stateBlock->vertexShaderConstantF,
deviceImpl->activeContext->vshader_const_dirty);
- /* Upload the position fixup */
- GL_EXTCALL(glProgramEnvParameter4fvARB(GL_VERTEX_PROGRAM_ARB, ARB_SHADER_PRIVCONST_POS, deviceImpl->posFixup));
-
shader_arb_vs_local_constants(deviceImpl);
}
@@ -581,7 +581,7 @@ static DWORD shader_generate_arb_declarations(IWineD3DBaseShader *iface, const s
{
if(ctx->target_version >= NV2) *num_clipplanes = GL_LIMITS(clipplanes);
else *num_clipplanes = min(GL_LIMITS(clipplanes), 4);
- max_constantsF = GL_LIMITS(vshader_constantsF) - 1;
+ max_constantsF = GL_LIMITS(vshader_constantsF);
}
}
@@ -3455,7 +3455,8 @@ static GLuint shader_arb_generate_vshader(IWineD3DVertexShaderImpl *This,
}
/* We need a constant to fixup the final position */
- shader_addline(buffer, "PARAM posFixup = program.env[%d];\n", ARB_SHADER_PRIVCONST_POS);
+ shader_addline(buffer, "PARAM posFixup = program.local[%u];\n", next_local);
+ compiled->pos_fixup = next_local++;
/* Initialize output parameters. GL_ARB_vertex_program does not require special initialization values
* for output parameters. D3D in theory does not do that either, but some applications depend on a
@@ -4154,7 +4155,7 @@ static void shader_arb_get_caps(WINED3DDEVTYPE devtype, const WineD3D_GL_Info *g
pCaps->VertexShaderVersion = WINED3DVS_VERSION(1,1);
TRACE_(d3d_caps)("Hardware vertex shader version 1.1 enabled (ARB_PROGRAM)\n");
}
- pCaps->MaxVertexShaderConst = GL_LIMITS(vshader_constantsF) - 1;
+ pCaps->MaxVertexShaderConst = GL_LIMITS(vshader_constantsF);
}
if(GL_SUPPORT(ARB_FRAGMENT_PROGRAM)) {