mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-04-21 19:24:00 +00:00
最大化
This commit is contained in:
@@ -328,10 +328,10 @@ namespace CMLeonOS.Gui.UILib
|
||||
|
||||
internal override void Render()
|
||||
{
|
||||
Clear(_background);
|
||||
|
||||
if (Text == string.Empty)
|
||||
{
|
||||
Clear(_background);
|
||||
|
||||
DrawRectangle(0, 0, Width, Height, Color.Gray);
|
||||
DrawString(PlaceholderText, PlaceholderForeground, 0, 0);
|
||||
|
||||
@@ -352,7 +352,6 @@ namespace CMLeonOS.Gui.UILib
|
||||
for (int i = markedLinesBegin; i <= markedLinesEnd; i++)
|
||||
{
|
||||
int lineY = (i * fontHeight) - scrollY;
|
||||
|
||||
if (lineY < 0) continue;
|
||||
if (lineY > Height) break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user