54 lines
2.3 KiB
Diff
54 lines
2.3 KiB
Diff
--- a/intern/ghost/intern/GHOST_WindowWin32.cc
|
|
+++ b/intern/ghost/intern/GHOST_WindowWin32.cc
|
|
@@ -267,11 +267,11 @@
|
|
GetMonitorInfo(hmonitor, &monitor);
|
|
|
|
/* Constrain requested size and position to fit within this monitor. */
|
|
- LONG width = min(monitor.rcWork.right - monitor.rcWork.left, win_rect->right - win_rect->left);
|
|
- LONG height = min(monitor.rcWork.bottom - monitor.rcWork.top, win_rect->bottom - win_rect->top);
|
|
- win_rect->left = min(max(monitor.rcWork.left, win_rect->left), monitor.rcWork.right - width);
|
|
+ LONG width = std::min(monitor.rcWork.right - monitor.rcWork.left, win_rect->right - win_rect->left);
|
|
+ LONG height = std::min(monitor.rcWork.bottom - monitor.rcWork.top, win_rect->bottom - win_rect->top);
|
|
+ win_rect->left = std::min(std::max(monitor.rcWork.left, win_rect->left), monitor.rcWork.right - width);
|
|
win_rect->right = win_rect->left + width;
|
|
- win_rect->top = min(max(monitor.rcWork.top, win_rect->top), monitor.rcWork.bottom - height);
|
|
+ win_rect->top = std::min(std::max(monitor.rcWork.top, win_rect->top), monitor.rcWork.bottom - height);
|
|
win_rect->bottom = win_rect->top + height;
|
|
|
|
/* With Windows 10 and newer we can adjust for chrome that differs with DPI and scale. */
|
|
@@ -293,7 +293,7 @@
|
|
}
|
|
|
|
/* But never allow a top position that can hide part of the title bar. */
|
|
- win_rect->top = max(monitor.rcWork.top, win_rect->top);
|
|
+ win_rect->top = std::max(monitor.rcWork.top, win_rect->top);
|
|
}
|
|
|
|
bool GHOST_WindowWin32::getValid() const
|
|
--- a/intern/ghost/intern/GHOST_Wintab.cc
|
|
+++ b/intern/ghost/intern/GHOST_Wintab.cc
|
|
@@ -93,10 +93,10 @@
|
|
const int maxQueue = 500;
|
|
/* < 0 should realistically never happen, but given we cast to size_t later on better safe than
|
|
* sorry. */
|
|
- int queueSize = max(0, queueSizeGet(hctx.get()));
|
|
+ int queueSize = std::max(0, queueSizeGet(hctx.get()));
|
|
|
|
while (queueSize < maxQueue) {
|
|
- int testSize = min(queueSize + 16, maxQueue);
|
|
+ int testSize = std::min(queueSize + 16, maxQueue);
|
|
if (queueSizeSet(hctx.get(), testSize)) {
|
|
queueSize = testSize;
|
|
}
|
|
--- a/intern/cycles/app/opengl/shader.cpp.orig
|
|
+++ b/intern/cycles/app/opengl/shader.cpp
|
|
@@ -51,7 +51,7 @@
|
|
LOG(ERROR) << "Shader: " << task << " error:";
|
|
LOG(ERROR) << "===== shader string ====";
|
|
|
|
- stringstream stream(code);
|
|
+ std::stringstream stream(code);
|
|
string partial;
|
|
|
|
int line = 1;
|