... | ... |
@@ -93,12 +93,3 @@ initppu(Ppu *p, Uint8 hor, Uint8 ver) |
93 | 93 |
clear(p); |
94 | 94 |
return 1; |
95 | 95 |
} |
96 |
-; |
|
97 |
- p->height = 8 * p->ver; |
|
98 |
- if(!(p->bg.pixels = malloc(p->width * p->height * sizeof(Uint32)))) |
|
99 |
- return 0; |
|
100 |
- if(!(p->fg.pixels = malloc(p->width * p->height * sizeof(Uint32)))) |
|
101 |
- return 0; |
|
102 |
- clear(p); |
|
103 |
- return 1; |
|
104 |
-} |