Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
		
							parent
							
								
									90aa0e4a49
								
							
						
					
					
						commit
						91e1fe5863
					
				|  | @ -480,14 +480,8 @@ xf86_use_hw_cursor_argb (ScreenPtr screen, CursorPtr cursor) | ||||||
|     xf86CrtcConfigPtr   xf86_config = XF86_CRTC_CONFIG_PTR(scrn); |     xf86CrtcConfigPtr   xf86_config = XF86_CRTC_CONFIG_PTR(scrn); | ||||||
|     xf86CursorInfoPtr	cursor_info = xf86_config->cursor_info; |     xf86CursorInfoPtr	cursor_info = xf86_config->cursor_info; | ||||||
|      |      | ||||||
|     if (xf86_config->cursor) { |     if (xf86_config->cursor) | ||||||
| 	/* Under some circumstances an already set cursor is set again.
 | 	FreeCursor (xf86_config->cursor, None); | ||||||
| 	 * If the pointer is freed, ->bits is killed */ |  | ||||||
| 	if (xf86_config->cursor != cursor) |  | ||||||
| 	    FreeCursor (xf86_config->cursor, None); |  | ||||||
| 	else |  | ||||||
| 	    --cursor->refcnt; |  | ||||||
|     } |  | ||||||
|     xf86_config->cursor = cursor; |     xf86_config->cursor = cursor; | ||||||
|     ++cursor->refcnt; |     ++cursor->refcnt; | ||||||
|      |      | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue