|
@@ -50,13 +50,13 @@ static GLbyte const gl_bgpal[][4] = |
|
|
{ 0x3f, 0x3f, 0x00, 0x7f }, |
|
|
{ 0x3f, 0x3f, 0x00, 0x7f }, |
|
|
{ 0x3f, 0x3f, 0x3f, 0x7f }, |
|
|
{ 0x3f, 0x3f, 0x3f, 0x7f }, |
|
|
// + intensity |
|
|
// + intensity |
|
|
{ 0x00, 0x00, 0x00, 0x7f }, |
|
|
|
|
|
{ 0x00, 0x00, 0x7f, 0x7f }, |
|
|
|
|
|
{ 0x00, 0x7f, 0x00, 0x7f }, |
|
|
|
|
|
{ 0x00, 0x7f, 0x7f, 0x7f }, |
|
|
|
|
|
{ 0x7f, 0x00, 0x00, 0x7f }, |
|
|
|
|
|
{ 0x7f, 0x00, 0x7f, 0x7f }, |
|
|
|
|
|
{ 0x7f, 0x7f, 0x00, 0x7f }, |
|
|
|
|
|
|
|
|
{ 0x1f, 0x1f, 0x1f, 0x7f }, |
|
|
|
|
|
{ 0x1f, 0x1f, 0x7f, 0x7f }, |
|
|
|
|
|
{ 0x1f, 0x7f, 0x1f, 0x7f }, |
|
|
|
|
|
{ 0x1f, 0x7f, 0x7f, 0x7f }, |
|
|
|
|
|
{ 0x7f, 0x1f, 0x1f, 0x7f }, |
|
|
|
|
|
{ 0x7f, 0x1f, 0x7f, 0x7f }, |
|
|
|
|
|
{ 0x7f, 0x7f, 0x1f, 0x7f }, |
|
|
{ 0x7f, 0x7f, 0x7f, 0x7f } |
|
|
{ 0x7f, 0x7f, 0x7f, 0x7f } |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@@ -272,7 +272,8 @@ static void gl_display(caca_t *kk) |
|
|
glTexCoord2f(kk->drv.p->sw, kk->drv.p->sh); |
|
|
glTexCoord2f(kk->drv.p->sw, kk->drv.p->sh); |
|
|
glVertex2f(x + kk->drv.p->font_width, y); |
|
|
glVertex2f(x + kk->drv.p->font_width, y); |
|
|
glTexCoord2f(kk->drv.p->sw, 0); |
|
|
glTexCoord2f(kk->drv.p->sw, 0); |
|
|
glVertex2f(x + kk->drv.p->font_width, y + kk->drv.p->font_height); |
|
|
|
|
|
|
|
|
glVertex2f(x + kk->drv.p->font_width, |
|
|
|
|
|
y + kk->drv.p->font_height); |
|
|
glTexCoord2f(0, 0); |
|
|
glTexCoord2f(0, 0); |
|
|
glVertex2f(x, y + kk->drv.p->font_height); |
|
|
glVertex2f(x, y + kk->drv.p->font_height); |
|
|
glEnd(); |
|
|
glEnd(); |
|
|