WindowVX: Fix cursor rectangle geometry not updating
This commit is contained in:
		
							parent
							
								
									062c7267d7
								
							
						
					
					
						commit
						bce4eb2bee
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -251,6 +251,8 @@ struct WindowVXPrivate
 | 
			
		|||
 | 
			
		||||
		prepareCon = shState->prepareDraw.connect
 | 
			
		||||
			(sigc::mem_fun(this, &WindowVXPrivate::prepare));
 | 
			
		||||
 | 
			
		||||
		refreshCursorRectCon();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	~WindowVXPrivate()
 | 
			
		||||
| 
						 | 
				
			
			@ -759,8 +761,8 @@ struct WindowVXPrivate
 | 
			
		|||
			if (drawCursor)
 | 
			
		||||
			{
 | 
			
		||||
				Vec2i contTrans = pad.pos();
 | 
			
		||||
				contTrans.x += std::abs(-contentsOff.x);
 | 
			
		||||
				contTrans.y += std::abs(-contentsOff.y);
 | 
			
		||||
				contTrans.x += std::abs(-contentsOff.x) + cursorRect->x;
 | 
			
		||||
				contTrans.y += std::abs(-contentsOff.y) + cursorRect->y;
 | 
			
		||||
				shader.setTranslation(contTrans);
 | 
			
		||||
 | 
			
		||||
				TEX::setSmooth(true);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue