From 39d43995a70e84a112b86d27cdac763a19d122a8 Mon Sep 17 00:00:00 2001 From: otya128 Date: Wed, 14 Dec 2016 20:10:02 +0900 Subject: [PATCH] Remove no effect code --- SMILEBASIC/console.d | 1 - SMILEBASIC/petitcomputer.d | 22 ---------------------- 2 files changed, 23 deletions(-) diff --git a/SMILEBASIC/console.d b/SMILEBASIC/console.d index 3eb7e63..a8e2fa3 100644 --- a/SMILEBASIC/console.d +++ b/SMILEBASIC/console.d @@ -294,7 +294,6 @@ class Console { glMatrixMode(GL_MODELVIEW); glLoadIdentity(); - petitcom.chScreen(0, 0, 400, 240); } synchronized(this) { diff --git a/SMILEBASIC/petitcomputer.d b/SMILEBASIC/petitcomputer.d index c5e06ad..e766d97 100644 --- a/SMILEBASIC/petitcomputer.d +++ b/SMILEBASIC/petitcomputer.d @@ -376,13 +376,6 @@ class PetitComputer { glViewport(cast(int)(x * scaleX), cast(int)(y * scaleY), cast(int)(w * scaleX), cast(int)(h * scaleY)); } - void chScreen(int x, int y, int w, int h) - { - glViewport2(x, y, w, h); - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - glOrtho(0, w, h, 0, 1024, -2048); - } void chScreen2(int x, int y, int w, int h) { glViewport2(x, currentDisplay.yoffset - h - y, w, h); @@ -634,7 +627,6 @@ class PetitComputer graphic.GRPFWidth = console.GRPF.surface.w; graphic.GRPFHeight = console.GRPF.surface.h; console.GRPF.createTexture(renderer, textureScaleMode); - chScreen(0, 0, 400, 240); glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glEnable(GL_DEPTH_TEST); version(Windows) @@ -683,16 +675,6 @@ class PetitComputer synchronized(renderSync) { glLoadIdentity(); - //graphic.draw(); - chScreen(0, 0, 400, 240); - if(xscreenmode == 1) - { - chScreen(0, 240, 400, 240); - } - if(xscreenmode == 2) - { - chScreen(0, 0, 320, 480); - } { ubyte r, g, b, a; RGBRead(petitcomBackcolor, r, g, b, a); @@ -731,10 +713,6 @@ class PetitComputer version(test) glLoadIdentity(); version(test) glRotatef(rot_test_deg, rot_test_x, rot_test_y, rot_test_z); - if(xscreenmode == 1) - { - chScreen(0, 240, 400, 240); - } //http://marina.sys.wakayama-u.ac.jp/~tokoi/?date=20081122 みたいな方法もあるけどとりあえず //とりあえず一番楽な方法 //これだと同一Zでスプライトが一番下に来てしまうのでZ値を補正する必要がある->やった