-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
テキスト幅計算に使用する文字間隔配列のコンテナを使いまわす事で負荷を削減 #1415
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,8 @@ class CTextMetrics{ | |
const wchar_t* pText, //!< 文字列 | ||
int nLength, //!< 文字列長 | ||
int nHankakuDx, //!< 半角文字の文字間隔 | ||
int nCharSpacing | ||
int nCharSpacing, //!< 文字の隙間 | ||
std::vector<int>& vDxArray //!< [out] 文字間隔配列 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 100%好みに基づく変更要望ですが、 根拠は windows api の型定義で、DxArrayの型定義は本来 あとになってグダグダ言うのは嫌なのでいまのうちに指摘しときますが、元定義が There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 確かにそうした方が好ましいですが将来的に問題になる事はおそらく無いと思います。 |
||
); | ||
|
||
int CalcTextWidth3( | ||
|
@@ -129,5 +130,6 @@ class CTextMetrics{ | |
int m_anHankakuDx[64]; //!< 半角用文字間隔配列 | ||
int m_anZenkakuDx[64]; //!< 全角用文字間隔配列 | ||
std::vector<int> m_aFontHeightMargin; | ||
mutable std::vector<int> m_vDxArray; //!< 文字間隔配列 | ||
}; | ||
#endif /* SAKURA_CTEXTMETRICS_7972A864_FDFF_4852_9EA5_A91D39657A7F_H_ */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
影響ないと思うのでスルーします。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ついでにインデントの調整を行いました。