userspace: Add missing alpha channels
This commit is contained in:
		
							parent
							
								
									163961df4f
								
							
						
					
					
						commit
						7f25ddc229
					
				|  | @ -28,7 +28,7 @@ namespace LibGUI | |||
| 			return BAN::Error::from_errno(EINVAL); | ||||
| 
 | ||||
| 		BAN::Vector<uint32_t> framebuffer; | ||||
| 		TRY(framebuffer.resize(width * height)); | ||||
| 		TRY(framebuffer.resize(width * height, 0xFF000000)); | ||||
| 
 | ||||
| 		int server_fd = socket(AF_UNIX, SOCK_SEQPACKET, 0); | ||||
| 		if (server_fd == -1) | ||||
|  |  | |||
|  | @ -10,7 +10,7 @@ void randomize_color(BAN::UniqPtr<LibGUI::Window>& window) | |||
| 	uint32_t color = ((rand() % 255) << 16) | ((rand() % 255) << 8) | ((rand() % 255) << 0); | ||||
| 	for (uint32_t y = 0; y < window->height(); y++) | ||||
| 		for (uint32_t x = 0; x < window->width(); x++) | ||||
| 			window->set_pixel(x, y, color); | ||||
| 			window->set_pixel(x, y, 0xFF000000 | color); | ||||
| 	window->invalidate(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue