Changeset 2942 for libpipi/trunk/pipi/codec/oric.c
- Timestamp:
- 10/13/08 03:18:56 (5 years ago)
- File:
-
- 1 edited
-
libpipi/trunk/pipi/codec/oric.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libpipi/trunk/pipi/codec/oric.c
r2941 r2942 525 525 static void write_screen(float const *data, uint8_t *screen) 526 526 { 527 int src[(WIDTH + 1) * (HEIGHT + 1) * 3]; 528 int dst[(WIDTH + 1) * (HEIGHT + 1) * 3]; 529 int *srcl, *dstl; 527 int *src, *srcl, *dst, *dstl; 530 528 int stride, x, y, depth, c; 531 529 532 530 stride = (WIDTH + 1) * 3; 533 531 534 memset(src, 0, sizeof(src)); 535 memset(dst, 0, sizeof(dst)); 532 src = malloc((WIDTH + 1) * (HEIGHT + 1) * 3); 533 memset(src, 0, (WIDTH + 1) * (HEIGHT + 1) * 3); 534 535 dst = malloc((WIDTH + 1) * (HEIGHT + 1) * 3); 536 memset(dst, 0, (WIDTH + 1) * (HEIGHT + 1) * 3); 536 537 537 538 /* Import pixels into our custom format */
Note: See TracChangeset
for help on using the changeset viewer.
