mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +00:00
Rename to Aerofoil
This commit is contained in:
4
GpCommon/GpApplicationName.h
Normal file
4
GpCommon/GpApplicationName.h
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define GP_APPLICATION_NAME "Aerofoil"
|
||||||
|
#define GP_APPLICATION_NAME_W L"Aerofoil"
|
||||||
BIN
GpD3D/GpD3D.rc
BIN
GpD3D/GpD3D.rc
Binary file not shown.
@@ -169,6 +169,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\GpCommon\EGpInputDriverType.h" />
|
<ClInclude Include="..\GpCommon\EGpInputDriverType.h" />
|
||||||
<ClInclude Include="..\GpCommon\EGpStandardCursor.h" />
|
<ClInclude Include="..\GpCommon\EGpStandardCursor.h" />
|
||||||
|
<ClInclude Include="..\GpCommon\GpApplicationName.h" />
|
||||||
<ClInclude Include="..\GpCommon\GpDisplayDriverTickStatus.h" />
|
<ClInclude Include="..\GpCommon\GpDisplayDriverTickStatus.h" />
|
||||||
<ClInclude Include="..\GpCommon\GpFileCreationDisposition.h" />
|
<ClInclude Include="..\GpCommon\GpFileCreationDisposition.h" />
|
||||||
<ClInclude Include="..\GpCommon\GpInputDriverProperties.h" />
|
<ClInclude Include="..\GpCommon\GpInputDriverProperties.h" />
|
||||||
|
|||||||
@@ -197,6 +197,9 @@
|
|||||||
<ClInclude Include="..\GpCommon\GpFileCreationDisposition.h">
|
<ClInclude Include="..\GpCommon\GpFileCreationDisposition.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\GpCommon\GpApplicationName.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ResourceCompile Include="GpD3D.rc">
|
<ResourceCompile Include="GpD3D.rc">
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#include "GpFileSystem_Win32.h"
|
#include "GpFileSystem_Win32.h"
|
||||||
|
|
||||||
|
#include "GpApplicationName.h"
|
||||||
#include "GpFileStream_Win32.h"
|
#include "GpFileStream_Win32.h"
|
||||||
#include "GpWindows.h"
|
#include "GpWindows.h"
|
||||||
#include "GpMemoryBuffer.h"
|
#include "GpMemoryBuffer.h"
|
||||||
@@ -295,7 +297,7 @@ bool GpFileSystem_Win32::PromptSaveFile(PortabilityLayer::VirtualDirectory_t vir
|
|||||||
memset(&ofn, 0, sizeof(ofn));
|
memset(&ofn, 0, sizeof(ofn));
|
||||||
|
|
||||||
ofn.lStructSize = sizeof(ofn);
|
ofn.lStructSize = sizeof(ofn);
|
||||||
ofn.lpstrFilter = L"GlidePort File (*.gpf)\0*.gpf\0";
|
ofn.lpstrFilter = GP_APPLICATION_NAME_W L" File (*.gpf)\0*.gpf\0";
|
||||||
ofn.lpstrFile = baseFN;
|
ofn.lpstrFile = baseFN;
|
||||||
ofn.lpstrDefExt = L"gpf";
|
ofn.lpstrDefExt = L"gpf";
|
||||||
ofn.nMaxFile = MAX_PATH;
|
ofn.nMaxFile = MAX_PATH;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
#include "GpApplicationName.h"
|
||||||
#include "GpDisplayDriverD3D11.h"
|
#include "GpDisplayDriverD3D11.h"
|
||||||
#include "GpDisplayDriverSurfaceD3D11.h"
|
#include "GpDisplayDriverSurfaceD3D11.h"
|
||||||
#include "GpWindows.h"
|
#include "GpWindows.h"
|
||||||
@@ -546,7 +547,7 @@ void GpDisplayDriverD3D11::Run()
|
|||||||
RECT wr = { 0, 0, m_windowWidth, m_windowHeight };
|
RECT wr = { 0, 0, m_windowWidth, m_windowHeight };
|
||||||
AdjustWindowRect(&wr, windowStyle, menus != NULL);
|
AdjustWindowRect(&wr, windowStyle, menus != NULL);
|
||||||
|
|
||||||
m_hwnd = CreateWindowExW(NULL, L"GPD3D11WindowClass", L"GlidePort (Direct3D 11)", WS_OVERLAPPEDWINDOW, 300, 300, wr.right - wr.left, wr.bottom - wr.top, NULL, menus, m_osGlobals->m_hInstance, NULL);
|
m_hwnd = CreateWindowExW(NULL, L"GPD3D11WindowClass", GP_APPLICATION_NAME_W L" (Direct3D 11)", WS_OVERLAPPEDWINDOW, 300, 300, wr.right - wr.left, wr.bottom - wr.top, NULL, menus, m_osGlobals->m_hInstance, NULL);
|
||||||
|
|
||||||
ShowWindow(m_hwnd, m_osGlobals->m_nCmdShow);
|
ShowWindow(m_hwnd, m_osGlobals->m_nCmdShow);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user