diff --git a/base/applications/screensavers/3dtext/3dtext.c b/base/applications/screensavers/3dtext/3dtext.c index c1f908ca37a..10fa75f885e 100644 --- a/base/applications/screensavers/3dtext/3dtext.c +++ b/base/applications/screensavers/3dtext/3dtext.c @@ -26,11 +26,15 @@ #include #include #include +#include + +WINE_DEFAULT_DEBUG_CHANNEL(desktop); #include "resource.h" static HGLRC hRC; // Permanent Rendering Context static HDC hDC; // Private GDI Device Context +PROC pwglSwapInterval; GLuint base; // Base Display List For The Font Set GLfloat rot; // Used To Rotate The Text @@ -178,6 +182,11 @@ GLvoid InitGL(GLsizei Width, GLsizei Height) // Enable Coloring Of Material glEnable(GL_COLOR_MATERIAL); + + pwglSwapInterval = wglGetProcAddress("wglSwapIntervalEXT"); + DPRINTF("pwglSwapInterval is '%p'.\n", pwglSwapInterval); + if (pwglSwapInterval) + ((BOOL(WINAPI*)(int))wglGetProcAddress("wglSwapIntervalEXT"))(1); } // Handles Window Resizing diff --git a/base/applications/screensavers/3dtext/CMakeLists.txt b/base/applications/screensavers/3dtext/CMakeLists.txt index 8258dba1a84..3460c58ebb5 100644 --- a/base/applications/screensavers/3dtext/CMakeLists.txt +++ b/base/applications/screensavers/3dtext/CMakeLists.txt @@ -8,7 +8,7 @@ add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/icon_3dtext.ico) add_executable(3dtext ${SOURCE} rsrc.rc) set_module_type(3dtext win32gui UNICODE) set_target_properties(3dtext PROPERTIES SUFFIX ".scr") -target_link_libraries(3dtext scrnsave) -add_importlibs(3dtext user32 gdi32 opengl32 glu32 advapi32 msvcrt kernel32) +target_link_libraries(3dtext wine scrnsave) +add_importlibs(3dtext user32 gdi32 opengl32 glu32 advapi32 msvcrt kernel32 ntdll) add_pch(3dtext 3dtext.h SOURCE) add_cd_file(TARGET 3dtext DESTINATION reactos/system32 FOR all)