make underlines and strikethroughs respect chscale
				
					
				
			This commit is contained in:
		
				
					committed by
					
						
						Hiltjo Posthuma
					
				
			
			
				
	
			
			
			
						parent
						
							e823e2308f
						
					
				
				
					commit
					2aefa348ba
				
			
							
								
								
									
										4
									
								
								x.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								x.c
									
									
									
									
									
								
							@@ -1493,12 +1493,12 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
 | 
			
		||||
 | 
			
		||||
	/* Render underline and strikethrough. */
 | 
			
		||||
	if (base.mode & ATTR_UNDERLINE) {
 | 
			
		||||
		XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent + 1,
 | 
			
		||||
		XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent * chscale + 1,
 | 
			
		||||
				width, 1);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (base.mode & ATTR_STRUCK) {
 | 
			
		||||
		XftDrawRect(xw.draw, fg, winx, winy + 2 * dc.font.ascent / 3,
 | 
			
		||||
		XftDrawRect(xw.draw, fg, winx, winy + 2 * dc.font.ascent * chscale / 3,
 | 
			
		||||
				width, 1);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user