mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 17:28:00 +02:00
GetCell fixes
This commit is contained in:
parent
d32c8212a9
commit
8de7c57c23
1 changed files with 4 additions and 5 deletions
|
@ -149,7 +149,9 @@ class WinNativeConsoleProvider : ConsoleProvider
|
|||
[CRepr]
|
||||
struct RECT : this(int16 left, int16 top, int16 right, int16 bottom)
|
||||
{
|
||||
[Inline]
|
||||
public int16 Width => right - left;
|
||||
[Inline]
|
||||
public int16 Height => bottom - top;
|
||||
}
|
||||
|
||||
|
@ -372,15 +374,12 @@ class WinNativeConsoleProvider : ConsoleProvider
|
|||
return (mScreenInfo.mInfo.mCursorX, mScreenInfo.mInfo.mCursorY);
|
||||
return default;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override Cell GetCell(int col, int row)
|
||||
{
|
||||
if (mScreenInfo == null)
|
||||
return default;
|
||||
if ((row < 0) || (row >= mScreenInfo.mInfo.mWindowRect.Height))
|
||||
{
|
||||
GetFullScreenInfo(mScreenInfo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue