Fix graphic rendering
This commit is contained in:
@@ -584,6 +584,13 @@ class Graphic
|
|||||||
sendDrawMessage(dm);
|
sendDrawMessage(dm);
|
||||||
}
|
}
|
||||||
int gprio;
|
int gprio;
|
||||||
|
void render()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < petitcom.currentDisplay.rect.length; i++)
|
||||||
|
{
|
||||||
|
render(i, petitcom.currentDisplay.rect[i].w, petitcom.currentDisplay.rect[i].h);
|
||||||
|
}
|
||||||
|
}
|
||||||
void render(int display, int w, int h)
|
void render(int display, int w, int h)
|
||||||
{
|
{
|
||||||
if (!visibles[display])
|
if (!visibles[display])
|
||||||
|
|||||||
@@ -689,24 +689,7 @@ class PetitComputer
|
|||||||
version(test) glRotatef(rot_test_deg, rot_test_x, rot_test_y, rot_test_z);
|
version(test) glRotatef(rot_test_deg, rot_test_x, rot_test_y, rot_test_z);
|
||||||
console.render();
|
console.render();
|
||||||
|
|
||||||
if(xscreenmode == 1)
|
graphic.render();
|
||||||
{
|
|
||||||
chScreen(0, 240, 400, 240);
|
|
||||||
}
|
|
||||||
if(xscreenmode == 2)
|
|
||||||
{
|
|
||||||
graphic.render(0, 320, 480);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
graphic.render(0, 400, 240);
|
|
||||||
}
|
|
||||||
if(xscreenmode == 1)
|
|
||||||
{
|
|
||||||
chScreen(40, 0, 320, 240);
|
|
||||||
graphic.render(1, 320, 240);
|
|
||||||
chScreen(0, 240, 400, 240);
|
|
||||||
}
|
|
||||||
if(xscreenmode == 2)
|
if(xscreenmode == 2)
|
||||||
{
|
{
|
||||||
chScreen(0, 0, 320, 480);
|
chScreen(0, 0, 320, 480);
|
||||||
|
|||||||
Reference in New Issue
Block a user