1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 23:34:10 +02:00

Fixed 'find on stack'

This commit is contained in:
Brian Fiete 2020-01-18 14:43:05 -08:00
parent de2716bcd1
commit 07a0972366
2 changed files with 5 additions and 3 deletions

View file

@ -290,6 +290,8 @@ namespace IDE.ui
} }
#endif #endif
float statusLabelPos = (int)GS!(-1.3f);
//completionPct = 0.4f; //completionPct = 0.4f;
if (completionPct.HasValue) if (completionPct.HasValue)
{ {
@ -309,7 +311,7 @@ namespace IDE.ui
using (g.PushColor(0x40202080)) using (g.PushColor(0x40202080))
g.FillRect(completionRect.mX, completionRect.mY, completionRect.mWidth, completionRect.mHeight); g.FillRect(completionRect.mX, completionRect.mY, completionRect.mWidth, completionRect.mHeight);
g.DrawString("Source Changed", GS!(200), GS!(-1.3f), FontAlign.Centered, GS!(120)); g.DrawString("Source Changed", GS!(200), statusLabelPos, FontAlign.Centered, GS!(120));
} }
void DrawStatusBox(StringView str, int32 updateCnt = -1) void DrawStatusBox(StringView str, int32 updateCnt = -1)
@ -336,7 +338,7 @@ namespace IDE.ui
if (mCancelSymSrvButton != null) if (mCancelSymSrvButton != null)
mCancelSymSrvButton.mX = completionRect.Right - GS!(16); mCancelSymSrvButton.mX = completionRect.Right - GS!(16);
g.DrawString(str, x, (int)GS!(-1.3f), FontAlign.Centered, len); g.DrawString(str, x, statusLabelPos, FontAlign.Centered, len);
} }
if (gApp.mKeyChordState != null) if (gApp.mKeyChordState != null)

View file

@ -2738,7 +2738,7 @@ namespace IDE.ui
} }
} }
if (watchEntry.mResultType == .Pointer) if (watchEntry.mResultType.HasFlag(.Pointer))
{ {
if (int.Parse(watchEntry.mEditInitialize) case .Ok(let addr)) if (int.Parse(watchEntry.mEditInitialize) case .Ok(let addr))
{ {