mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 00:29:11 +01:00
fixed windows and linux builds. the console/debugger/etc files in lle/hle/ogl really need to be de-uglified!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@833 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
540539ee27
commit
3d1cc88b4f
@ -67,7 +67,7 @@
|
|||||||
FloatingPointModel="2"
|
FloatingPointModel="2"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="Globals.h"
|
PrecompiledHeaderThrough="Globals.h"
|
||||||
PrecompiledHeaderFile="$(IntDir)/Globals.pch"
|
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
||||||
AssemblerListingLocation="$(IntDir)\"
|
AssemblerListingLocation="$(IntDir)\"
|
||||||
ObjectFile="$(IntDir)\"
|
ObjectFile="$(IntDir)\"
|
||||||
ProgramDataBaseFileName="$(IntDir)\"
|
ProgramDataBaseFileName="$(IntDir)\"
|
||||||
@ -76,7 +76,7 @@
|
|||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
DebugInformationFormat="3"
|
DebugInformationFormat="3"
|
||||||
CompileAs="0"
|
CompileAs="0"
|
||||||
ForcedIncludeFiles=""
|
ForcedIncludeFiles="stdafx.h"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCManagedResourceCompilerTool"
|
Name="VCManagedResourceCompilerTool"
|
||||||
@ -276,7 +276,7 @@
|
|||||||
RuntimeLibrary="1"
|
RuntimeLibrary="1"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="Globals.h"
|
PrecompiledHeaderThrough="Globals.h"
|
||||||
PrecompiledHeaderFile="$(IntDir)/Globals.pch"
|
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
||||||
AssemblerListingLocation="$(IntDir)\"
|
AssemblerListingLocation="$(IntDir)\"
|
||||||
ObjectFile="$(IntDir)\"
|
ObjectFile="$(IntDir)\"
|
||||||
ProgramDataBaseFileName="$(IntDir)\"
|
ProgramDataBaseFileName="$(IntDir)\"
|
||||||
@ -484,7 +484,7 @@
|
|||||||
FloatingPointModel="2"
|
FloatingPointModel="2"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="Globals.h"
|
PrecompiledHeaderThrough="Globals.h"
|
||||||
PrecompiledHeaderFile="$(IntDir)/Globals.pch"
|
PrecompiledHeaderFile="$(IntDir)/VideoOGL.pch"
|
||||||
AssemblerListingLocation="$(IntDir)\"
|
AssemblerListingLocation="$(IntDir)\"
|
||||||
ObjectFile="$(IntDir)\"
|
ObjectFile="$(IntDir)\"
|
||||||
ProgramDataBaseFileName="$(IntDir)\"
|
ProgramDataBaseFileName="$(IntDir)\"
|
||||||
@ -493,7 +493,7 @@
|
|||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
DebugInformationFormat="3"
|
DebugInformationFormat="3"
|
||||||
CompileAs="0"
|
CompileAs="0"
|
||||||
ForcedIncludeFiles=""
|
ForcedIncludeFiles="stdafx.h"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCManagedResourceCompilerTool"
|
Name="VCManagedResourceCompilerTool"
|
||||||
@ -903,6 +903,54 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Debugger\Debugger.cpp"
|
RelativePath=".\Src\Debugger\Debugger.cpp"
|
||||||
>
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="DebugFast|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="DebugFast|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Debugger\Debugger.h"
|
RelativePath=".\Src\Debugger\Debugger.h"
|
||||||
@ -911,6 +959,54 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Debugger\PBView.cpp"
|
RelativePath=".\Src\Debugger\PBView.cpp"
|
||||||
>
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="DebugFast|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="DebugFast|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Debugger\PBView.h"
|
RelativePath=".\Src\Debugger\PBView.h"
|
||||||
@ -923,6 +1019,54 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Logging\Console.cpp"
|
RelativePath=".\Src\Logging\Console.cpp"
|
||||||
>
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="DebugFast|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="DebugFast|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Logging\Console.h"
|
RelativePath=".\Src\Logging\Console.h"
|
||||||
@ -931,6 +1075,54 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Logging\Logging.cpp"
|
RelativePath=".\Src\Logging\Logging.cpp"
|
||||||
>
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="DebugFast|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="DebugFast|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PrecompiledHeaderThrough="../Globals.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\Logging\Logging.h"
|
RelativePath=".\Src\Logging\Logging.h"
|
||||||
|
@ -18,12 +18,12 @@
|
|||||||
|
|
||||||
// --------------------
|
// --------------------
|
||||||
// Includes
|
// Includes
|
||||||
|
#include "../Globals.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
#include "../Globals.h"
|
|
||||||
|
|
||||||
|
|
||||||
// --------------------
|
// --------------------
|
||||||
@ -149,12 +149,15 @@ void ClearScreen()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
|
// VERY UGLY! needs to be fixed soon, just fixing the biuld...
|
||||||
void CloseConsole()
|
void CloseConsole()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
void OpenConsole()
|
void OpenConsole()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(DEBUGG) && defined(_WIN32)
|
#if defined(DEBUGG) && defined(_WIN32)
|
||||||
HWND GetConsoleHwnd(void)
|
HWND GetConsoleHwnd(void)
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
// Official SVN repository and contact information can be found at
|
// Official SVN repository and contact information can be found at
|
||||||
// http://code.google.com/p/dolphin-emu/
|
// http://code.google.com/p/dolphin-emu/
|
||||||
|
|
||||||
|
#include "Globals.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define _interlockedbittestandset workaround_ms_header_bug_platform_sdk6_set
|
#define _interlockedbittestandset workaround_ms_header_bug_platform_sdk6_set
|
||||||
#define _interlockedbittestandreset workaround_ms_header_bug_platform_sdk6_reset
|
#define _interlockedbittestandreset workaround_ms_header_bug_platform_sdk6_reset
|
||||||
@ -27,7 +29,6 @@
|
|||||||
#undef _interlockedbittestandreset64
|
#undef _interlockedbittestandreset64
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "Globals.h"
|
|
||||||
#include "Profiler.h"
|
#include "Profiler.h"
|
||||||
|
|
||||||
#include "Render.h"
|
#include "Render.h"
|
||||||
|
@ -362,8 +362,8 @@ void VertexShaderMngr::SetConstants(VERTEXSHADER& vs)
|
|||||||
wAdj = ratio;
|
wAdj = ratio;
|
||||||
hAdj = 1;
|
hAdj = 1;
|
||||||
|
|
||||||
wid = ceil(abs(2 * rawViewport[0]) / wAdj);
|
wid = ceil(fabs(2 * rawViewport[0]) / wAdj);
|
||||||
hei = ceil(abs(2 * rawViewport[1]) / hAdj);
|
hei = ceil(fabs(2 * rawViewport[1]) / hAdj);
|
||||||
|
|
||||||
actualWid = ceil((float)winw / ratio);
|
actualWid = ceil((float)winw / ratio);
|
||||||
actualRatiow = (float)actualWid / (float)wid; // the picture versus the screen
|
actualRatiow = (float)actualWid / (float)wid; // the picture versus the screen
|
||||||
@ -377,8 +377,8 @@ void VertexShaderMngr::SetConstants(VERTEXSHADER& vs)
|
|||||||
wAdj = 1;
|
wAdj = 1;
|
||||||
hAdj = ratio;
|
hAdj = ratio;
|
||||||
|
|
||||||
wid = ceil(abs(2 * rawViewport[0]) / wAdj);
|
wid = ceil(fabs(2 * rawViewport[0]) / wAdj);
|
||||||
hei = ceil(abs(2 * rawViewport[1]) / hAdj);
|
hei = ceil(fabs(2 * rawViewport[1]) / hAdj);
|
||||||
|
|
||||||
actualHei = ceil((float)winh / ratio);
|
actualHei = ceil((float)winh / ratio);
|
||||||
actualRatioh = (float)actualHei / (float)hei; // the picture versus the screen
|
actualRatioh = (float)actualHei / (float)hei; // the picture versus the screen
|
||||||
@ -388,8 +388,8 @@ void VertexShaderMngr::SetConstants(VERTEXSHADER& vs)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wid = ceil(abs(2 * rawViewport[0]));
|
wid = ceil(fabs(2 * rawViewport[0]));
|
||||||
hei = ceil(abs(2 * rawViewport[1]));
|
hei = ceil(fabs(2 * rawViewport[1]));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(g_Config.bStretchToFit)
|
if(g_Config.bStretchToFit)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user