Added an AMD CPU logo to please screenshots lurkers.

Should be better moved into resources next time. Will see...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13758 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2005-07-19 00:42:26 +00:00
parent 0d02a8aaba
commit b56e312187
2 changed files with 955 additions and 529 deletions
+16 -7
View File
@@ -130,21 +130,30 @@ NormalPulseView::DetermineVendorAndProcessor()
system_info sys_info; system_info sys_info;
get_system_info(&sys_info); get_system_info(&sys_info);
// Initialize logos // Initialize logo
fCpuLogo = new BBitmap(BRect(0, 0, 63, 62), B_COLOR_8_BIT); fCpuLogo = new BBitmap(BRect(0, 0, 63, 62), B_COLOR_8_BIT);
unsigned char *logo = BlankLogo;
#if __POWERPC__ #if __POWERPC__
fCpuLogo->SetBits(Anim1, fCpuLogo->BitsLength(), 0, B_COLOR_8_BIT); logo = PowerPCLogo;
#endif #endif
#if __INTEL__ #if __INTEL__
if ((sys_info.cpu_type & B_CPU_x86_VENDOR_MASK) == B_CPU_INTEL_x86) {
fCpuLogo->SetBits(IntelLogo, fCpuLogo->BitsLength(), 0, B_COLOR_8_BIT); switch (sys_info.cpu_type & B_CPU_x86_VENDOR_MASK) {
fHasBrandLogo = true; case B_CPU_INTEL_x86:
} else logo = IntelLogo;
fCpuLogo->SetBits(BlankLogo, fCpuLogo->BitsLength(), 0, B_COLOR_8_BIT); break;
case B_CPU_AMD_x86:
logo = AmdLogo;
break;
};
#endif #endif
fCpuLogo->SetBits(logo, fCpuLogo->BitsLength(), 0, B_COLOR_8_BIT);
fHasBrandLogo = (logo != BlankLogo);
get_cpu_type(fVendor, sizeof(fVendor), fProcessor, sizeof(fProcessor)); get_cpu_type(fVendor, sizeof(fVendor), fProcessor, sizeof(fProcessor));
} }
+939 -522
View File
File diff suppressed because it is too large Load Diff