Contribute
Register

Chimera 2.0 Source Now Available

Status
Not open for further replies.

MacMan

Administrator
Staff member
Joined
Feb 2, 2010
Messages
8,182
Motherboard
ASUS TUF Z390-PRO GAMING - 2606 - UEFI
CPU
i9-9900K
Graphics
Vega 64
Mac
  1. MacBook Pro
  2. Mac Pro
Classic Mac
  1. Power Mac
  2. PowerBook
Mobile Phone
  1. iOS
chimera-tinychameleon.png

View the Source:
http://forge.voodooprojects.org/p/chameleon/source/tree/HEAD/branches/Chimera

Chimera 2.0 Now Available with iMessage Login Fix
http://www.tonymacx86.com/336-chimera-2-0-now-available-imessage-login-fix.html

If you are going to build using Xcode 4.6 or later you will need to implement the fixes documented here http://forge.voodooprojects.org/p/chameleon/source/commit/2175/
 
Awesome, I much prefer building my custom loader (extra graphics) from Chimera rather than Chameleon, but it's so rare that the latest Chimera is available in source.

Speaking of which, any chance of committing the 2.1.1 fix?

My custom changes are slight... A custom Windows XP icon (relies on volume label being named - or renamed as - Windows XP), some kerning on the fonts, and a non-configurable disabling of the grey background generated before showing the Apple Boot Logo. (For my all dark themes).

One day I may get around to making the options configurable.

Code:
--- gui.c	2013-06-27 21:06:02.000000000 +1000
+++ gui_custom.c	2013-06-28 01:16:04.000000000 +1000
@@ -85,6 +85,8 @@
     iDeviceFAT32_o,
     iDeviceNTFS,
     iDeviceNTFS_o,
+    iDeviceNTFS_XP,
+    iDeviceNTFS_XP_o,
     iDeviceCDROM,
     iDeviceCDROM_o,
 
@@ -165,6 +167,8 @@
     {.name = "device_fat32_o",              .image = NULL},
     {.name = "device_ntfs",                 .image = NULL},
     {.name = "device_ntfs_o",               .image = NULL},
+    {.name = "device_ntfs_xp",              .image = NULL},
+    {.name = "device_ntfs_xp_o",            .image = NULL},
     {.name = "device_cdrom",                .image = NULL},
     {.name = "device_cdrom_o",              .image = NULL},
 
@@ -404,6 +408,8 @@
 	LOADPNG(device_fat32_o,                 iDeviceFAT32);
 	LOADPNG(device_ntfs,                    iDeviceGeneric);
 	LOADPNG(device_ntfs_o,                  iDeviceNTFS);
+	LOADPNG(device_ntfs_xp,                 iDeviceGeneric);
+	LOADPNG(device_ntfs_xp_o,               iDeviceNTFS_XP);
 	LOADPNG(device_cdrom,                   iDeviceGeneric);
 	LOADPNG(device_cdrom_o,                 iDeviceCDROM);
 
@@ -925,7 +931,11 @@
 				
 			}				
 			case kPartitionTypeHPFS:
-				devicetype = iDeviceNTFS;		// Use HPFS / NTFS icon
+				if (!strcmp( device->label, "Windows XP")) {
+				   devicetype = is_image_loaded(iDeviceNTFS_XP) ? iDeviceNTFS_XP : iDeviceGeneric;		// Use Windows XP icon. Should revert to NTFS icon, but harder to spot error if we do so.
+				   break;
+				}
+				devicetype = is_image_loaded(iDeviceNTFS) ? iDeviceNTFS : iDeviceGeneric;		// Use HPFS / NTFS icon
 				break;
 
 			case kPartitionTypeFAT16:
@@ -1472,7 +1482,8 @@
 	if (pm && ((p.x + pm->width) < blendInto->width))
 	{
 		blend(pm, blendInto, p);
-		return pos(p.x + pm->width, p.y);
+		// Custom kerning, -2 is a little over-kerned for some things, -1 is nice.
+		return pos(p.x + pm->width - 2, p.y);
 	}
 	else
 		return p;
@@ -2089,7 +2100,8 @@
 		drawCheckerBoard();
 	} else {
 		// Fill the background to 75% grey (same as BootX). 
-		drawColorRectangle(0, 0, screen_params[0], screen_params[1], 0x01); 
+		// Disable the grey fill, so the screen can stay dark (for custom dark backgrounds)
+		// drawColorRectangle(0, 0, screen_params[0], screen_params[1], 0x01); 
 	}
 	if ((bootImageData) && (usePngImage)) { 
 		x = (screen_params[0] - MIN(bootImageWidth, screen_params[0])) / 2; 
@@ -2117,3 +2129,4 @@
 		} 
 	} 
 }
+/* vim: set ts=4 sts=0 sw=3 noet: */
 
I edit my minor changes into my earlier post, I think they're quite .. pretty lookin'. If one was to make them a little more configurable, that would just be swell to include in Chimera.


blackmod1.jpg


Added Windows XP Icon

blackmod2.jpg


Then switch to black boot screen, without the grey background flashing up.

And some font kerning.
 
Status
Not open for further replies.
Back
Top