From 8e49cf41c96fabb30a5d4182f371c747571e9dc2 Mon Sep 17 00:00:00 2001 From: otya128 Date: Mon, 12 Dec 2016 23:03:47 +0900 Subject: [PATCH] Fix xscreen --- SMILEBASIC/petitcomputer.d | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/SMILEBASIC/petitcomputer.d b/SMILEBASIC/petitcomputer.d index 8127dc0..8fcc54c 100644 --- a/SMILEBASIC/petitcomputer.d +++ b/SMILEBASIC/petitcomputer.d @@ -477,10 +477,13 @@ class PetitComputer this.bg[i].display = 0; this.bg[i].clip; } - for(int i = bgmax; i < this.bg.length; i++) + if (currentDisplay.rect.length > 1) { - this.bg[i].display = 1; - this.bg[i].clip; + for(int i = bgmax; i < this.bg.length; i++) + { + this.bg[i].display = 1; + this.bg[i].clip; + } } for (int i = cast(int)currentDisplay.rect.length - 1; i >= 0; i--) {