Module: wine
Branch: master
Commit: 5a2fc716312de5fc547e56762ed96c046e16b090
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5a2fc716312de5fc547e56762…
Author: Hans Leidekker <hans(a)codeweavers.com>
Date: Mon Mar 31 19:43:49 2014 +0200
fonts: Add Hungarian localization of Tahoma font names.
---
fonts/tahoma.sfd | 1 +
fonts/tahoma.ttf | Bin 143628 -> 143652 bytes
fonts/tahomabd.sfd | 1 +
fonts/tahomabd.ttf | Bin 136708 -> 136780 bytes
4 files changed, 2 insertions(+)
diff --git a/fonts/tahoma.sfd b/fonts/tahoma.sfd
index 47a0651..3d6b44e 100644
--- a/fonts/tahoma.sfd
+++ b/fonts/tahoma.sfd
@@ -102,6 +102,7 @@ TtfTable: VDMX 1504
!<)rC!;6Els31Q<!<<)D!;HQps3(K=!<N5E!;Z]ts3(K?!<`AG!;lj#s3(KA!=&SJ!<*!'s3(KC
!=/YK
EndTtf
+LangName: 1038 "" "" "Norm+AOEA-l"
LangName: 1033 "" "" "" "Wine Tahoma Regular" "" "Version 0.001" "" "(C) 2004 Larry Snyder Based on Bitstream Vera Sans (C) Bitstream Inc." "" "" "" "http://www.winehq.org" "" "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.+AAoACgAA-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.+AAoACgAA-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 Street, Fifth Floor, Boston, MA 02110-1301 USA+AAoA" "http://www.gnu.org/licenses/lgpl.html"
GaspTable: 3 8 0 16 1 65535 3 0
Encoding: UnicodeBmp
diff --git a/fonts/tahoma.ttf b/fonts/tahoma.ttf
index c535eae..4f68d1e 100644
Binary files a/fonts/tahoma.ttf and b/fonts/tahoma.ttf differ
diff --git a/fonts/tahomabd.sfd b/fonts/tahomabd.sfd
index ae0e946..b3f935b 100644
--- a/fonts/tahomabd.sfd
+++ b/fonts/tahomabd.sfd
@@ -102,6 +102,7 @@ TtfTable: VDMX 1504
!<)rC!;6Els31Q<!<<)D!;HQps3(K=!<N5E!;Z]ts3(K?!<`AG!;lj#s3(KA!=&SJ!<*!'s3(KC
!=/YK
EndTtf
+LangName: 1038 "" "" "F+AOkA-lk+APYA-v+AOkA-r" "" "Tahoma F+AOkA-lk+APYA-v+AOkA-r"
LangName: 1033 "" "" "" "Wine Tahoma Bold" "" "Version 0.001" "" "(C) 2004 Larry Snyder Based on Bitstream Vera Sans (C) Bitstream Inc." "" "" "" "http://www.winehq.org" "" "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.+AAoACgAA-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.+AAoACgAA-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 Street, Fifth Floor, Boston, MA 02110-1301 USA+AAoA" "http://www.gnu.org/licenses/lgpl.html"
GaspTable: 3 8 0 16 1 65535 3 0
Encoding: UnicodeBmp
diff --git a/fonts/tahomabd.ttf b/fonts/tahomabd.ttf
index b4b0b41..f7d9c46 100644
Binary files a/fonts/tahomabd.ttf and b/fonts/tahomabd.ttf differ
Module: wine
Branch: master
Commit: 4325ecdca841d6d161f723339afe9277f5d09704
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4325ecdca841d6d161f723339…
Author: Ken Thomases <ken(a)codeweavers.com>
Date: Mon Mar 31 21:46:48 2014 -0500
winex11: Maintain the swap interval when the drawable is recreated.
The swap interval is a property of the GLX drawable, which is destroyed and
recreated by set_gl_drawable_parent() and wglSetPixelFormatWINE(). When that
happens, copy the interval from the old gl_drawable and apply it at the next
call to wglSwapBuffers().
---
dlls/winex11.drv/opengl.c | 82 ++++++++++++++++++++++++++++-----------------
1 file changed, 52 insertions(+), 30 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index b3bd45b..85231f0 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -252,6 +252,7 @@ struct gl_drawable
XVisualInfo *visual; /* information about the GL visual */
RECT rect; /* drawable rect, relative to whole window drawable */
int swap_interval;
+ BOOL refresh_swap_interval;
};
enum glx_swap_control_method
@@ -1185,6 +1186,43 @@ static inline void sync_context(struct wgl_context *context)
}
}
+static BOOL set_swap_interval(Drawable drawable, int interval)
+{
+ BOOL ret = TRUE;
+
+ switch (swap_control_method)
+ {
+ case GLX_SWAP_CONTROL_EXT:
+ X11DRV_expect_error(gdi_display, GLXErrorHandler, NULL);
+ pglXSwapIntervalEXT(gdi_display, drawable, interval);
+ XSync(gdi_display, False);
+ ret = !X11DRV_check_error();
+ break;
+
+ case GLX_SWAP_CONTROL_MESA:
+ ret = !pglXSwapIntervalMESA(interval);
+ break;
+
+ case GLX_SWAP_CONTROL_SGI:
+ /* wglSwapIntervalEXT considers an interval value of zero to mean that
+ * vsync should be disabled, but glXSwapIntervalSGI considers such a
+ * value to be an error. Just silently ignore the request for now.
+ */
+ if (!interval)
+ WARN("Request to disable vertical sync is not handled\n");
+ else
+ ret = !pglXSwapIntervalSGI(interval);
+ break;
+
+ case GLX_SWAP_CONTROL_NONE:
+ /* Unlikely to happen on modern GLX implementations */
+ WARN("Request to adjust swap interval is not handled\n");
+ break;
+ }
+
+ return ret;
+}
+
static struct gl_drawable *get_gl_drawable( HWND hwnd, HDC hdc )
{
struct gl_drawable *gl;
@@ -1314,6 +1352,8 @@ static BOOL create_gl_drawable( HWND hwnd, struct gl_drawable *gl )
}
}
+ if (gl->drawable)
+ gl->refresh_swap_interval = TRUE;
return gl->drawable != 0;
}
@@ -1330,6 +1370,7 @@ static BOOL set_win_format( HWND hwnd, const struct wgl_pixel_format *format )
* there is no way to query it, so we have to store it here.
*/
gl->swap_interval = 1;
+ gl->refresh_swap_interval = TRUE;
gl->format = format;
gl->visual = pglXGetVisualFromFBConfig( gdi_display, format->fbconfig );
if (!gl->visual)
@@ -1355,7 +1396,10 @@ static BOOL set_win_format( HWND hwnd, const struct wgl_pixel_format *format )
EnterCriticalSection( &context_section );
if (!XFindContext( gdi_display, (XID)hwnd, gl_hwnd_context, (char **)&prev ))
+ {
+ gl->swap_interval = prev->swap_interval;
free_gl_drawable( prev );
+ }
XSaveContext( gdi_display, (XID)hwnd, gl_hwnd_context, (char *)gl );
LeaveCriticalSection( &context_section );
@@ -2957,36 +3001,8 @@ static BOOL X11DRV_wglSwapIntervalEXT(int interval)
return FALSE;
}
- switch (swap_control_method)
- {
- case GLX_SWAP_CONTROL_EXT:
- X11DRV_expect_error(gdi_display, GLXErrorHandler, NULL);
- pglXSwapIntervalEXT(gdi_display, gl->drawable, interval);
- XSync(gdi_display, False);
- ret = !X11DRV_check_error();
- break;
-
- case GLX_SWAP_CONTROL_MESA:
- ret = !pglXSwapIntervalMESA(interval);
- break;
-
- case GLX_SWAP_CONTROL_SGI:
- /* wglSwapIntervalEXT considers an interval value of zero to mean that
- * vsync should be disabled, but glXSwapIntervalSGI considers such a
- * value to be an error. Just silently ignore the request for now.
- */
- if (!interval)
- WARN("Request to disable vertical sync is not handled\n");
- else
- ret = !pglXSwapIntervalSGI(interval);
- break;
-
- case GLX_SWAP_CONTROL_NONE:
- /* Unlikely to happen on modern GLX implementations */
- WARN("Request to adjust swap interval is not handled\n");
- break;
- }
-
+ ret = set_swap_interval(gl->drawable, interval);
+ gl->refresh_swap_interval = FALSE;
if (ret)
gl->swap_interval = interval;
else
@@ -3202,6 +3218,12 @@ static BOOL glxdrv_wglSwapBuffers( HDC hdc )
return FALSE;
}
+ if (gl->refresh_swap_interval)
+ {
+ set_swap_interval(gl->drawable, gl->swap_interval);
+ gl->refresh_swap_interval = FALSE;
+ }
+
switch (gl->type)
{
case DC_GL_PIXMAP_WIN: