Browse code

Re-added setting border pixels to black

Andrew Alderwick authored on 08/10/2021 23:03:34
Showing 1 changed files
... ...
@@ -157,6 +157,7 @@ set_size(Uint16 width, Uint16 height, int is_resize)
157 157
 	gTexture = SDL_CreateTexture(gRenderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STATIC, ppu.width + PAD * 2, ppu.height + PAD * 2);
158 158
 	if(gTexture == NULL || SDL_SetTextureBlendMode(gTexture, SDL_BLENDMODE_NONE))
159 159
 		return error("sdl_texture", SDL_GetError());
160
+	SDL_UpdateTexture(gTexture, NULL, ppu_screen, sizeof(Uint32));
160 161
 	if(is_resize)
161 162
 		set_window_size(gWindow, (ppu.width + PAD * 2) * zoom, (ppu.height + PAD * 2) * zoom);
162 163
 	ppu.reqdraw = 1;