Fix display()
This commit is contained in:
@@ -322,6 +322,12 @@ class PetitComputer
|
|||||||
{
|
{
|
||||||
import std.exception : enforce;
|
import std.exception : enforce;
|
||||||
enforce(number >= 0);
|
enforce(number >= 0);
|
||||||
|
if (xscreenmode == 2)
|
||||||
|
{
|
||||||
|
enforce(number == 0);
|
||||||
|
currentScreenWidth = screenWidthDisplay1;
|
||||||
|
currentScreenHeight = screenHeightDisplay1 * 2;
|
||||||
|
}
|
||||||
if(xscreenmode == 0)
|
if(xscreenmode == 0)
|
||||||
{
|
{
|
||||||
enforce(number == 0);
|
enforce(number == 0);
|
||||||
@@ -331,14 +337,16 @@ class PetitComputer
|
|||||||
else if(xscreenmode == 1)
|
else if(xscreenmode == 1)
|
||||||
{
|
{
|
||||||
enforce(number == 0 || number == 1);
|
enforce(number == 0 || number == 1);
|
||||||
currentScreenWidth = screenWidthDisplay1;
|
if (number == 0)
|
||||||
currentScreenHeight = screenHeightDisplay1;
|
{
|
||||||
|
currentScreenWidth = screenWidth;
|
||||||
|
currentScreenHeight = screenHeight;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
enforce(number == 0);
|
|
||||||
currentScreenWidth = screenWidthDisplay1;
|
currentScreenWidth = screenWidthDisplay1;
|
||||||
currentScreenHeight = screenHeightDisplay1 * 2;
|
currentScreenHeight = screenHeightDisplay1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
displaynum = number;
|
displaynum = number;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user