Change to compile Visual Studio 2008.

This commit is contained in:
Tatsuhiko Syoji
2024-02-15 23:58:20 +09:00
parent 2c6d467be6
commit 775f66ea7b
3 changed files with 58 additions and 0 deletions

View File

@@ -187,6 +187,10 @@
RelativePath=".\iniReader.cpp"
>
</File>
<File
RelativePath=".\langresource.cpp"
>
</File>
<File
RelativePath=".\noMeiryoUI.cpp"
>
@@ -255,6 +259,22 @@
>
</File>
</Filter>
<Filter
Name="country"
>
<File
RelativePath=".\country\default.cpp"
>
</File>
<File
RelativePath=".\country\japan.cpp"
>
</File>
<File
RelativePath=".\country\korea.cpp"
>
</File>
</Filter>
</Filter>
<Filter
Name="<22>w<EFBFBD>b<EFBFBD>_<EFBFBD>[ <20>t<EFBFBD>@<40>C<EFBFBD><43>"
@@ -269,6 +289,10 @@
RelativePath=".\iniReader.h"
>
</File>
<File
RelativePath=".\langresource.h"
>
</File>
<File
RelativePath=".\noMeiryoUI.h"
>
@@ -341,6 +365,22 @@
>
</File>
</Filter>
<Filter
Name="country"
>
<File
RelativePath=".\country\default.h"
>
</File>
<File
RelativePath=".\country\japan.h"
>
</File>
<File
RelativePath=".\country\korea.h"
>
</File>
</Filter>
</Filter>
<Filter
Name="<22><><EFBFBD>\<5C>[<5B>X <20>t<EFBFBD>@<40>C<EFBFBD><43>"

View File

@@ -74,6 +74,18 @@ double Win11PresetWindowsMetric[] = {
19,
4 };
#if _MSC_VER < 1600
double round(double x)
{
if (x > 0.0){
return floor(x + 0.5);
} else {
return ceil(x - 0.5);
}
}
#endif
/**
* フォントのピクセル数に対応するポイント数を整数で算出する。(Windows 8)
*

View File

@@ -97,6 +97,12 @@ size_t utf8toUtf16(tstring& dst, const char* src);
int getSystemDPI(void);
double getFontPointDouble(LOGFONT* font, HWND hWnd);
#if _MSC_VER < 1600
double round(double x);
#endif
/**
* <20>v<EFBFBD><76><EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD>ݒ<EFBFBD>
*