mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	apt/shared_font: don't relocate zero offset
This commit is contained in:
		
							parent
							
								
									72b69cea4b
								
							
						
					
					
						commit
						22994607cc
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -78,6 +78,7 @@ void RelocateSharedFont(Kernel::SharedPtr<Kernel::SharedMemory> shared_font, VAd | ||||||
|             memcpy(&cmap, data, sizeof(cmap)); |             memcpy(&cmap, data, sizeof(cmap)); | ||||||
| 
 | 
 | ||||||
|             // Relocate the offsets in the CMAP section
 |             // Relocate the offsets in the CMAP section
 | ||||||
|  |             if (cmap.next_cmap_offset != 0) | ||||||
|                 cmap.next_cmap_offset += offset; |                 cmap.next_cmap_offset += offset; | ||||||
| 
 | 
 | ||||||
|             memcpy(data, &cmap, sizeof(cmap)); |             memcpy(data, &cmap, sizeof(cmap)); | ||||||
|  | @ -86,6 +87,7 @@ void RelocateSharedFont(Kernel::SharedPtr<Kernel::SharedMemory> shared_font, VAd | ||||||
|             memcpy(&cwdh, data, sizeof(cwdh)); |             memcpy(&cwdh, data, sizeof(cwdh)); | ||||||
| 
 | 
 | ||||||
|             // Relocate the offsets in the CWDH section
 |             // Relocate the offsets in the CWDH section
 | ||||||
|  |             if (cwdh.next_cwdh_offset != 0) | ||||||
|                 cwdh.next_cwdh_offset += offset; |                 cwdh.next_cwdh_offset += offset; | ||||||
| 
 | 
 | ||||||
|             memcpy(data, &cwdh, sizeof(cwdh)); |             memcpy(data, &cwdh, sizeof(cwdh)); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue