• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版a383c209f22b347fb5c7872823ef8fac7ac15cf3 (tree)
时间2020-09-27 21:55:52
作者Kazuhiro Fujieda <fujieda@user...>
CommiterKazuhiro Fujieda

Log Message

艦娘一覧の行数計算がズームを反映していないのを直す

更改概述

差异

--- a/KancolleSniffer/View/ShipListPanel/ShipListPanel.cs
+++ b/KancolleSniffer/View/ShipListPanel/ShipListPanel.cs
@@ -289,7 +289,7 @@ namespace KancolleSniffer.View.ShipListPanel
289289
290290 private void SetupLabels()
291291 {
292- for (; _labelCount * LineHeight < Height; _labelCount++)
292+ for (; _labelCount * Scaler.ScaleHeight(LineHeight) < Height; _labelCount++)
293293 {
294294 _groupConfigLabels.CreateComponents(_labelCount);
295295 _repairListLabels.CreateLabels(_labelCount);
@@ -338,7 +338,7 @@ namespace KancolleSniffer.View.ShipListPanel
338338
339339 private void SetShipLabels()
340340 {
341- for (var i = 0; i < (Height + LineHeight - 1) / LineHeight; i++)
341+ for (var i = 0; i * Scaler.ScaleHeight(LineHeight) < Height; i++)
342342 {
343343 HidePanels(i);
344344 if (i + ScrollBar.Value >= _shipList.Length)