Bigger background pixmap
This commit is contained in:
		
							parent
							
								
									029e1208b9
								
							
						
					
					
						commit
						376c0d90c7
					
				
							
								
								
									
										11
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								window.c
									
									
									
									
									
								
							| @ -120,14 +120,17 @@ int win_configure(win_t *win, XConfigureEvent *cev) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void win_clear(win_t *win) { | void win_clear(win_t *win) { | ||||||
|  | 	win_env_t *e; | ||||||
|  | 
 | ||||||
| 	if (!win) | 	if (!win) | ||||||
| 		return; | 		return; | ||||||
| 
 | 
 | ||||||
|  | 	e = &win->env; | ||||||
|  | 
 | ||||||
| 	if (win->pm) | 	if (win->pm) | ||||||
| 		XFreePixmap(win->env.dpy, win->pm); | 		XFreePixmap(e->dpy, win->pm); | ||||||
| 	win->pm = XCreatePixmap(win->env.dpy, win->xwin, win->w, win->h, | 	win->pm = XCreatePixmap(e->dpy, win->xwin, e->scrw, e->scrh, e->depth); | ||||||
| 	                        win->env.depth); | 	XFillRectangle(e->dpy, win->pm, win->bgc, 0, 0, e->scrw, e->scrh); | ||||||
| 	XFillRectangle(win->env.dpy, win->pm, win->bgc, 0, 0, win->w, win->h); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void win_draw(win_t *win) { | void win_draw(win_t *win) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Bert
						Bert