From 7991e406a074348a0567cd96b18b8280c839db90 Mon Sep 17 00:00:00 2001 From: otya128 Date: Sat, 10 Dec 2016 21:55:17 +0900 Subject: [PATCH] Fix BG rendering --- SMILEBASIC/bg.d | 4 ++-- SMILEBASIC/petitcomputer.d | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/SMILEBASIC/bg.d b/SMILEBASIC/bg.d index c480cbc..ed102e1 100644 --- a/SMILEBASIC/bg.d +++ b/SMILEBASIC/bg.d @@ -86,10 +86,10 @@ class BG glTexCoord2f(u2 / (cast(float)petitcom.graphic.width) - 1, v2 / (cast(float)petitcom.graphic.height) - 1); glVertex3f((x * w + w), (y * h + h), 0); rendercount++; - if(rendercount >= 899) + /*if(rendercount >= 899) { break; - } + }*/ } } glEnd(); diff --git a/SMILEBASIC/petitcomputer.d b/SMILEBASIC/petitcomputer.d index 49eb226..f24a8aa 100644 --- a/SMILEBASIC/petitcomputer.d +++ b/SMILEBASIC/petitcomputer.d @@ -642,14 +642,6 @@ class PetitComputer version(test) glRotatef(rot_test_deg, rot_test_x, rot_test_y, rot_test_z); glBindTexture(GL_TEXTURE_2D, graphic.GRP[bgpage].glTexture); - if (BGvisibles[0]) - { - for(int i = 0; i < bgmax; i++) - { - bg[i].render(400f, 240f); - } - } - if (BGvisibles[0]) { chRenderingDisplay(0);