Merge commit '958721e'
This commit is contained in:
commit
54d43b2856
7 changed files with 24 additions and 9 deletions
|
|
@ -47,6 +47,7 @@
|
|||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstdint>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
|
|
|||
|
|
@ -130,6 +130,9 @@ include_directories(include include/zwidget src)
|
|||
if(WIN32)
|
||||
set(ZWIDGET_SOURCES ${ZWIDGET_SOURCES} ${ZWIDGET_WIN32_SOURCES})
|
||||
add_definitions(-DUNICODE -D_UNICODE)
|
||||
if(MINGW)
|
||||
add_definitions(-DMINGW)
|
||||
endif()
|
||||
elseif(APPLE)
|
||||
set(ZWIDGET_SOURCES ${ZWIDGET_SOURCES} ${ZWIDGET_COCOA_SOURCES})
|
||||
set(ZWIDGET_LIBS ${CMAKE_DL_LIBS} -ldl)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#include "window/window.h"
|
||||
#include <stdexcept>
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
|
||||
#include "win32/win32displaywindow.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -69,13 +69,20 @@ if( WIN32 )
|
|||
setupapi
|
||||
oleaut32
|
||||
dbghelp
|
||||
legacy_stdio_definitions )
|
||||
dxguid
|
||||
dwmapi
|
||||
)
|
||||
|
||||
if( NOT MINGW )
|
||||
list( APPEND PROJECT_LIBRARIES legacy_stdio_definitions )
|
||||
endif()
|
||||
|
||||
if( DEM_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
||||
if( DX_dxguid_LIBRARY )
|
||||
list( APPEND PROJECT_LIBRARIES "${DX_dxguid_LIBRARY}" )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
else()
|
||||
if( APPLE )
|
||||
set( NO_GTK ON )
|
||||
|
|
|
|||
|
|
@ -31,8 +31,6 @@
|
|||
**
|
||||
*/
|
||||
|
||||
namespace FileSys {
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#ifndef _WINNT_
|
||||
|
|
@ -40,6 +38,8 @@ namespace FileSys {
|
|||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
namespace FileSys {
|
||||
|
||||
class FInternalCriticalSection
|
||||
{
|
||||
public:
|
||||
|
|
@ -82,6 +82,8 @@ void LeaveCriticalSection(FInternalCriticalSection *c)
|
|||
|
||||
#include <pthread.h>
|
||||
|
||||
namespace FileSys {
|
||||
|
||||
class FInternalCriticalSection
|
||||
{
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
#include "fs_findfile.h"
|
||||
#include <string.h>
|
||||
#include <vector>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
|
|
@ -45,8 +46,6 @@
|
|||
#endif
|
||||
#include <unistd.h>
|
||||
#include <fnmatch.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <dirent.h>
|
||||
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -405,9 +405,12 @@ void HWDrawInfo::CreateScene(bool drawpsprites, FRenderState& state)
|
|||
angle_t a1 = FrustumAngle();
|
||||
mClipper->SafeAddClipRangeRealAngles(vp.Angles.Yaw.BAMs() + a1, vp.Angles.Yaw.BAMs() - a1);
|
||||
Viewpoint.FrustAngle = a1;
|
||||
double a2 = 20.0 + 0.5*Viewpoint.FieldOfView.Degrees(); // FrustumPitch for vertical clipping
|
||||
if (a2 > 179.0) a2 = 179.0;
|
||||
vClipper->SafeAddClipRangeDegPitches(vp.HWAngles.Pitch.Degrees() - a2, vp.HWAngles.Pitch.Degrees() + a2); // clip the suplex range
|
||||
if (Viewpoint.IsAllowedOoB()) // No need for vertical clipper if viewpoint not allowed out of bounds
|
||||
{
|
||||
double a2 = 20.0 + 0.5*Viewpoint.FieldOfView.Degrees(); // FrustumPitch for vertical clipping
|
||||
if (a2 > 179.0) a2 = 179.0;
|
||||
vClipper->SafeAddClipRangeDegPitches(vp.HWAngles.Pitch.Degrees() - a2, vp.HWAngles.Pitch.Degrees() + a2); // clip the suplex range
|
||||
}
|
||||
|
||||
// reset the portal manager
|
||||
drawctx->portalState.StartFrame();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue