Show image dimension in window title
This commit is contained in:
		
							parent
							
								
									65a2c8625d
								
							
						
					
					
						commit
						00e6cd2bd1
					
				
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @ -1,6 +1,6 @@ | |||||||
| all: sxiv | all: sxiv | ||||||
| 
 | 
 | ||||||
| VERSION=git-20110516 | VERSION=git-20110522 | ||||||
| 
 | 
 | ||||||
| CC?=gcc | CC?=gcc | ||||||
| DESTDIR?= | DESTDIR?= | ||||||
|  | |||||||
							
								
								
									
										7
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								main.c
									
									
									
									
									
								
							| @ -135,9 +135,10 @@ void update_title() { | |||||||
| 	} else { | 	} else { | ||||||
| 		size = filesize; | 		size = filesize; | ||||||
| 		size_readable(&size, &unit); | 		size_readable(&size, &unit); | ||||||
| 		n = snprintf(win_title, TITLE_LEN, "sxiv: [%d/%d] <%d%%> (%.2f%s) %s", | 		n = snprintf(win_title, TITLE_LEN, | ||||||
| 		             fileidx + 1, filecnt, (int) (img.zoom * 100.0), size, unit, | 		             "sxiv: [%d/%d] <%d%%> <%dx%d> (%.2f%s) %s", | ||||||
| 		             filenames[fileidx]); | 		             fileidx + 1, filecnt, (int) (img.zoom * 100.0), img.w, img.h, | ||||||
|  | 		             size, unit, filenames[fileidx]); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	if (n >= TITLE_LEN) { | 	if (n >= TITLE_LEN) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Bert
						Bert