mirror of
				https://github.com/pbatard/rufus.git
				synced 2024-08-14 23:57:05 +00:00 
			
		
		
		
	[ui] more info field fixes
* Prevent text selection and try to force a redraw, to ensure the text is centered on update * Also update the libcdio 'AL' workaround
This commit is contained in:
		
							parent
							
								
									0a3c04379b
								
							
						
					
					
						commit
						bb00e220ac
					
				
					 4 changed files with 15 additions and 10 deletions
				
			
		|  | @ -182,12 +182,12 @@ get_rock_ridge_filename(iso9660_dir_t * p_iso9660_dir, | |||
|       case SIG('P','L'): | ||||
|       case SIG('T','F'): | ||||
|       case SIG('Z','F'): | ||||
|       case SIG('A','L'):	// Kali Linux *NONSTANDARD* extension
 | ||||
|       case SIG('A','L'):	// libburnia's AAIP extension (used by Kali Linux)
 | ||||
| 	break; | ||||
|       default: | ||||
| 	/* Warn about other nonstandard Rock Ridge extensions */ | ||||
| 	cdio_warn("Invalid Rock Ridge extension detected: '%c%c'\n", *chr, *(chr+1)); | ||||
| 	goto out; | ||||
| 	/* Warn about other Rock Ridge extensions */ | ||||
| 	cdio_warn("Unsupported Rock Ridge extension detected: '%c%c'\n", *chr, *(chr+1)); | ||||
| 	break; | ||||
|       } | ||||
| 
 | ||||
|       if (rr->len == 0) goto out; /* Something got screwed up here */ | ||||
|  |  | |||
|  | @ -427,7 +427,8 @@ static uint64_t last_msg_time[2] = { 0, 0 }; | |||
| 
 | ||||
| static void PrintInfoMessage(char* msg) { | ||||
| 	SetWindowTextU(hInfo, msg); | ||||
| 	Edit_SetSel(hInfo, -1, 0); | ||||
| 	// Make sure our field gets redrawn
 | ||||
| 	SendMessage(hInfo, WM_PAINT, 0, 0); | ||||
| } | ||||
| static void PrintStatusMessage(char* msg) { | ||||
| 	SendMessageLU(hStatus, SB_SETTEXTW, SBT_OWNERDRAW | SB_SECTION_LEFT, msg); | ||||
|  |  | |||
|  | @ -1622,6 +1622,10 @@ static INT_PTR CALLBACK InfoCallback(HWND hCtrl, UINT message, WPARAM wParam, LP | |||
| 
 | ||||
| 	switch (message) { | ||||
| 
 | ||||
| 	// Prevent text selection (wich Windows seems keen on doing on its own)
 | ||||
| 	case EM_SETSEL: | ||||
| 		return (INT_PTR)TRUE; | ||||
| 
 | ||||
| 	// Prevent select (which screws up our display as it redraws the font using different settings)
 | ||||
| 	case WM_LBUTTONDOWN: | ||||
| 		return (INT_PTR)FALSE; | ||||
|  |  | |||
							
								
								
									
										10
									
								
								src/rufus.rc
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								src/rufus.rc
									
										
									
									
									
								
							|  | @ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL | |||
| IDD_DIALOG DIALOGEX 12, 12, 242, 376 | ||||
| STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | ||||
| EXSTYLE WS_EX_ACCEPTFILES | ||||
| CAPTION "Rufus 2.16.1160" | ||||
| CAPTION "Rufus 2.16.1161" | ||||
| FONT 8, "Segoe UI Symbol", 400, 0, 0x0 | ||||
| BEGIN | ||||
|     LTEXT           "Device",IDS_DEVICE_TXT,9,6,200,8 | ||||
|  | @ -366,8 +366,8 @@ END | |||
| // | ||||
| 
 | ||||
| VS_VERSION_INFO VERSIONINFO | ||||
|  FILEVERSION 2,16,1160,0 | ||||
|  PRODUCTVERSION 2,16,1160,0 | ||||
|  FILEVERSION 2,16,1161,0 | ||||
|  PRODUCTVERSION 2,16,1161,0 | ||||
|  FILEFLAGSMASK 0x3fL | ||||
| #ifdef _DEBUG | ||||
|  FILEFLAGS 0x1L | ||||
|  | @ -384,13 +384,13 @@ BEGIN | |||
|         BEGIN | ||||
|             VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)" | ||||
|             VALUE "FileDescription", "Rufus" | ||||
|             VALUE "FileVersion", "2.16.1160" | ||||
|             VALUE "FileVersion", "2.16.1161" | ||||
|             VALUE "InternalName", "Rufus" | ||||
|             VALUE "LegalCopyright", "© 2011-2017 Pete Batard (GPL v3)" | ||||
|             VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html" | ||||
|             VALUE "OriginalFilename", "rufus.exe" | ||||
|             VALUE "ProductName", "Rufus" | ||||
|             VALUE "ProductVersion", "2.16.1160" | ||||
|             VALUE "ProductVersion", "2.16.1161" | ||||
|         END | ||||
|     END | ||||
|     BLOCK "VarFileInfo" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue