Skip to content

Commit

Permalink
Merge branch 'master' into tatsu_develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsu-syo committed Feb 23, 2024
2 parents 383b099 + 1271abe commit 004b860
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lang/pt-BR.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; noMeiryoUI (C) 2005,2012-2024 Tatsuhiko Shoji
; noMeiryoUI (C) 2005,2012-2024 Tatsuhiko Shoji,Claudio Mantovani Vieira
; The sources for noMeiryoUI are distributed under the MIT open source license

;In RESOURCE section,
Expand All @@ -16,10 +16,10 @@ MENU_PRESET=&Pré-Definição
MENU_PRESET_8=Windows 8/8.1
MENU_PRESET_10=Windows 10
MENU_TOOLS=&Ferramentas
MENU_TOOLS_CHOICE_APP_FONT=Choice No!! Meiryo UI application &font
MENU_TOOLS_CHOICE_APP_FONT=Escolha &fonte do aplicativo da UI No!! Meiryo
MENU_TOOLS_THREAD=Definir as fontes do sistema em encadeamentos separados
MENU_TOOLS_SEVEN=Calcular o tamanho das fontes igual ao Windows 7
MENU_TOOLS_NO_MULTI_RUN=&Don't run multiply
MENU_TOOLS_NO_MULTI_RUN=&Não executar multiplicar
MENU_HELP=Aju&da
MENU_HELP_HELP=Aju&da
MENU_HELP_ABOUT=&Sobre o No!! Meiryo UI
Expand Down
40 changes: 40 additions & 0 deletions program/noMeiryoUI_2008.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@
RelativePath=".\iniReader.cpp"
>
</File>
<File
RelativePath=".\langresource.cpp"
>
</File>
<File
RelativePath=".\noMeiryoUI.cpp"
>
Expand Down Expand Up @@ -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="ヘッダー ファイル"
Expand All @@ -269,6 +289,10 @@
RelativePath=".\iniReader.h"
>
</File>
<File
RelativePath=".\langresource.h"
>
</File>
<File
RelativePath=".\noMeiryoUI.h"
>
Expand Down Expand Up @@ -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="リソース ファイル"
Expand Down
12 changes: 12 additions & 0 deletions program/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*
Expand Down
6 changes: 6 additions & 0 deletions program/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
* プリセット設定
*
Expand Down

0 comments on commit 004b860

Please sign in to comment.