Internal editor: minimal compilation fixes

This commit is contained in:
Louis Gombert
2024-05-23 08:06:24 +02:00
parent 0fa8705291
commit 87f19acc2f
45 changed files with 370 additions and 235 deletions

View File

@@ -148,6 +148,7 @@
* $NoKeywords: $
*/
#include <algorithm>
#include "stdafx.h"
#include "editor.h"
@@ -739,8 +740,8 @@ void CTextureDialog::DrawSwatch(int handle,float r,float g,float b)
CWnd *texwnd;
RECT rect;
int w,h;
float rmax=max(r,g);
rmax=max(rmax,b);
float rmax=std::max(r,g);
rmax=std::max(rmax,b);
if (rmax>=.001)
{