Browse Source

Replace the old caca texture with a copy of our new logo.

tags/v0.99.beta17
Sam Hocevar sam 15 years ago
parent
commit
72b669a8b5
2 changed files with 259 additions and 6 deletions
  1. +1
    -4
      src/cacademo.c
  2. +258
    -2
      src/texture.h

+ 1
- 4
src/cacademo.c View File

@@ -877,7 +877,6 @@ void rotozoom(enum action action, caca_canvas_t *canvas)
static int y_tab[TEXTURE_SIZE]; static int y_tab[TEXTURE_SIZE];


static caca_dither_t *dither; static caca_dither_t *dither;
static uint32_t *texture;
uint32_t *p; uint32_t *p;
static int alphaF, tF; static int alphaF, tF;
int scaleF; int scaleF;
@@ -897,8 +896,6 @@ void rotozoom(enum action action, caca_canvas_t *canvas)
} }
for(x = 0; x < TEXTURE_SIZE; x++) for(x = 0; x < TEXTURE_SIZE; x++)
y_tab[x] = x * TEXTURE_SIZE; /* start of lines offsets */ y_tab[x] = x * TEXTURE_SIZE; /* start of lines offsets */
/* FIXME: this may be an invalid cast */
texture = (uint32_t *)textureByte;
break; break;


case INIT: case INIT:
@@ -931,7 +928,7 @@ void rotozoom(enum action action, caca_canvas_t *canvas)
vu &= 0xFF; /* ARM doesn't like */ vu &= 0xFF; /* ARM doesn't like */
vv &= 0xFF; /* chars as local vars */ vv &= 0xFF; /* chars as local vars */


*p++ = texture[vu + y_tab[vv]];
*p++ = texture256x256[vu + y_tab[vv]];
} }


uF = uF_ -= yyF; uF = uF_ -= yyF;


+ 258
- 2
src/texture.h
File diff suppressed because it is too large
View File


Loading…
Cancel
Save