• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisionf1c3d3c521d5ec1099f0f1986aa8e7ce3ad7fca3 (tree)
Zeit2021-10-08 23:32:29
Autoryyagi <yyagi.dtxmania@gmai...>
Commiteryyagi

Log Message

#42998 Fixed failing to draw Artist/Comment field in SELECT MUSIC screen, in case these height is equal to the max number of 2x (but not exceed to width).

Ändern Zusammenfassung

  • delete: "DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\203\206\343\203\274\343\202\270/05.\351\201\270\346\233\262/CActSelectArtistComment.cs"
  • delete: "FDK/\343\202\263\343\203\274\343\203\211/04.\343\202\260\343\203\251\343\203\225\343\202\243\343\203\203\343\202\257/CTextureAutofold.cs"

Diff

--- "a/DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\203\206\343\203\274\343\202\270/05.\351\201\270\346\233\262/CActSelectArtistComment.cs"
+++ "b/DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\203\206\343\203\274\343\202\270/05.\351\201\270\346\233\262/CActSelectArtistComment.cs"
@@ -48,7 +48,8 @@ namespace DTXMania
4848 //graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
4949 //graphics.DrawString(this.strArtist, this.ft描画用フォント, Brushes.White, (float)0f, (float)0f);
5050 //graphics.Dispose();
51- this.txArtist = new CTextureAf(CDTXMania.Instance.Device, imageStrArtist, CDTXMania.Instance.TextureFormat);
51+ this.txArtist = new CTextureAf(CDTXMania.Instance.Device, imageStrArtist, CDTXMania.Instance.TextureFormat, _label:"Artist");
52+ txArtist.filename = this.strArtist;
5253 //this.txArtist.vc拡大縮小倍率 = new Vector3(0.5f, 0.5f, 1f);
5354 imageStrArtist.Dispose();
5455 }
@@ -111,6 +112,7 @@ namespace DTXMania
111112 try
112113 {
113114 this.txComment = new CTextureAf(CDTXMania.Instance.Device, imageStrComment, CDTXMania.Instance.TextureFormat, _label:"Comment");
115+ this.txComment.filename = this.strComment;
114116 //this.txComment.vc拡大縮小倍率 = new Vector3(0.5f, 0.5f, 1f);
115117 }
116118 catch (CTextureCreateFailedException)
--- "a/FDK/\343\202\263\343\203\274\343\203\211/04.\343\202\260\343\203\251\343\203\225\343\202\243\343\203\203\343\202\257/CTextureAutofold.cs"
+++ "b/FDK/\343\202\263\343\203\274\343\203\211/04.\343\202\260\343\203\251\343\203\225\343\202\243\343\203\203\343\202\257/CTextureAutofold.cs"
@@ -96,6 +96,8 @@ namespace FDK
9696 {
9797 base.MakeTexture(device, _image, format, b黒を透過する, pool, _label);
9898 }
99+ _orgWidth = base.szテクスチャサイズ.Width;
100+ _orgHeight = base.szテクスチャサイズ.Height;
99101 return;
100102 }
101103
@@ -113,6 +115,9 @@ namespace FDK
113115 {
114116 orgWidth = _image.Width; orgHeight = _image.Height;
115117 }
118+ _orgWidth = orgWidth;
119+ _orgHeight = orgHeight;
120+
116121 int w = orgWidth, h = orgHeight, foldtimes;
117122
118123 int nサポート可能な最大幅 = device.Capabilities.MaxTextureWidth;
@@ -217,8 +222,6 @@ namespace FDK
217222 bmpNew = null;
218223 #endregion
219224
220- _orgWidth = orgWidth;
221- _orgHeight = orgHeight;
222225 _foldtimes = foldtimes;
223226 this.sz画像サイズ = new Size( orgWidth, orgHeight );
224227 }
@@ -250,7 +253,7 @@ namespace FDK
250253 //Debug.WriteLine( "powちょうどではないので、溢れあり。まずは1回折りたたむ。" );
251254 // 試しに、widthをpowに切り詰め、1回折り返してみる。
252255 // width>heightを維持しているなら、テクスチャサイズはより最適な状態になったということになる。
253- if ( pow <= orgHeight * 2 ) // 新width > 新heightを維持できなくなったなら
256+ if ( pow < orgHeight * 2 ) // 新width >= 新heightを維持できなくなったなら
254257 { // 最適化不可とみなし、baseの処理に委ねる
255258 return false;
256259 }