Fix wrong memset size in screen_filters

This commit is contained in:
TuxSH 2019-03-15 17:04:15 +01:00
parent e796abb155
commit b05f993221

View File

@ -61,8 +61,8 @@ void applyColorSettings(color_setting_t* cs)
Pixel px[0x400]; Pixel px[0x400];
u8 i = 0; u8 i = 0;
memset(c, 0, 0x600); memset(c, 0, sizeof(c));
memset(px, 0, 0x400 * sizeof(Pixel)); memset(px, 0, sizeof(px));
do { do {
*(u32*)&px[i] = i | (i << 8) | (i << 16); *(u32*)&px[i] = i | (i << 8) | (i << 16);