mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Various Windows and VC++ 2010 fixes.
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ GLFWAPI void glfwSetGammaFormula(float gamma, float blacklevel, float gain)
|
||||
float value = (float) i / ((float) (size - 1));
|
||||
|
||||
// Apply gamma
|
||||
value = pow(value, 1.f / gamma) * 65535.f + 0.5f;
|
||||
value = (float) pow(value, 1.f / gamma) * 65535.f + 0.5f;
|
||||
|
||||
// Apply gain
|
||||
value = gain * (value - 32767.5f) + 32767.5f;
|
||||
|
||||
@@ -34,13 +34,16 @@
|
||||
|
||||
// We don't need all the fancy stuff
|
||||
#define NOMINMAX
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#define VC_EXTRALEAN
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
|
||||
#include "../../include/GL/wglext.h"
|
||||
#include "../include/GL/wglext.h"
|
||||
|
||||
|
||||
//========================================================================
|
||||
|
||||
+3
-2
@@ -1556,7 +1556,8 @@ void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)
|
||||
|
||||
void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
|
||||
{
|
||||
int bpp, newMode = 0, refresh;
|
||||
//int bpp, refresh;
|
||||
int newMode = 0;
|
||||
GLboolean sizeChanged = GL_FALSE;
|
||||
|
||||
if (window->mode == GLFW_FULLSCREEN)
|
||||
@@ -1647,7 +1648,7 @@ void _glfwPlatformRefreshWindowParams(void)
|
||||
{
|
||||
PIXELFORMATDESCRIPTOR pfd;
|
||||
DEVMODE dm;
|
||||
int pixelFormat, mode;
|
||||
int pixelFormat;
|
||||
|
||||
_GLFWwindow* window = _glfwLibrary.currentWindow;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user