mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 01:34:38 +00:00 
			
		
		
		
	Add the pixel density to the display mode list in testwm
This commit is contained in:
		@@ -112,9 +112,9 @@ draw_modes_menu(SDL_Window *window, SDL_Renderer *renderer, SDL_FRect viewport)
 | 
				
			|||||||
                SDL_FRect cell_rect;
 | 
					                SDL_FRect cell_rect;
 | 
				
			||||||
                const SDL_DisplayMode *mode = modes[j];
 | 
					                const SDL_DisplayMode *mode = modes[j];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                (void)SDL_snprintf(text, sizeof(text), "%s mode %d: %dx%d@%gHz",
 | 
					                (void)SDL_snprintf(text, sizeof(text), "%s mode %d: %dx%d@%gx %gHz",
 | 
				
			||||||
                                   SDL_GetDisplayName(display_id),
 | 
					                                   SDL_GetDisplayName(display_id),
 | 
				
			||||||
                                   j, mode->w, mode->h, mode->refresh_rate);
 | 
					                                   j, mode->w, mode->h, mode->pixel_density, mode->refresh_rate);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                /* Update column width */
 | 
					                /* Update column width */
 | 
				
			||||||
                text_length = (int)SDL_strlen(text);
 | 
					                text_length = (int)SDL_strlen(text);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user