update icon, move to assets
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								assets/icon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/icon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 67 KiB  | 
@@ -92,7 +92,7 @@ void Application::init() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	GLFWimage icon;
 | 
						GLFWimage icon;
 | 
				
			||||||
	int n;
 | 
						int n;
 | 
				
			||||||
	icon.pixels = stbi_load("icon.png", &icon.width, &icon.height, &n, 4);
 | 
						icon.pixels = stbi_load("assets/icon.png", &icon.width, &icon.height, &n, 4);
 | 
				
			||||||
	if (icon.pixels) {
 | 
						if (icon.pixels) {
 | 
				
			||||||
		glfwSetWindowIcon(window, 1, &icon);
 | 
							glfwSetWindowIcon(window, 1, &icon);
 | 
				
			||||||
		stbi_image_free(icon.pixels);
 | 
							stbi_image_free(icon.pixels);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user