mirror of
https://review.haiku-os.org/haiku
synced 2025-01-18 12:38:51 +01:00
Pulse: add Risc-V logo
This may become useful soon. Change-Id: I5c2d57981a04aacea5d8a0cf555ed06b72be48da Reviewed-on: https://review.haiku-os.org/c/haiku/+/3913 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: X512 <danger_mail@list.ru> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
fe40adc2a6
commit
599789de1e
BIN
data/artwork/icons/Pulse/RISC-V
Normal file
BIN
data/artwork/icons/Pulse/RISC-V
Normal file
Binary file not shown.
@ -486,7 +486,9 @@ enum cpu_platform {
|
||||
B_CPU_ARM_64,
|
||||
B_CPU_ALPHA,
|
||||
B_CPU_MIPS,
|
||||
B_CPU_SH
|
||||
B_CPU_SH,
|
||||
B_CPU_SPARC,
|
||||
B_CPU_RISC_V
|
||||
};
|
||||
|
||||
enum cpu_vendor {
|
||||
@ -502,7 +504,9 @@ enum cpu_vendor {
|
||||
B_CPU_VENDOR_IBM,
|
||||
B_CPU_VENDOR_MOTOROLA,
|
||||
B_CPU_VENDOR_NEC,
|
||||
B_CPU_VENDOR_HYGON
|
||||
B_CPU_VENDOR_HYGON,
|
||||
B_CPU_VENDOR_SUN,
|
||||
B_CPU_VENDOR_FUJITSU
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
@ -115,6 +115,19 @@ NormalPulseView::DetermineVendorAndProcessor()
|
||||
get_cpu_topology_info(topology, &topologyNodeCount);
|
||||
|
||||
for (uint32 i = 0; i < topologyNodeCount; i++) {
|
||||
// Use less specific platform logo only if no vendor specific one is
|
||||
// available
|
||||
if (logo == NULL && topology[i].type == B_TOPOLOGY_ROOT) {
|
||||
switch (topology[i].data.root.platform) {
|
||||
case B_CPU_RISC_V:
|
||||
logo = kRiscVLogo;
|
||||
logoSize = sizeof(kRiscVLogo);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (topology[i].type == B_TOPOLOGY_PACKAGE) {
|
||||
switch (topology[i].data.package.vendor) {
|
||||
case B_CPU_VENDOR_AMD:
|
||||
@ -246,7 +259,7 @@ NormalPulseView::Draw(BRect rect)
|
||||
if (fBrandLogo != NULL) {
|
||||
DrawBitmap(fBrandLogo, BPoint(
|
||||
9 + (fChipRect.Width() - fBrandLogo->Bounds().Width()) / 2,
|
||||
fChipRect.top + 8));
|
||||
fChipRect.top + 6));
|
||||
} else {
|
||||
SetHighColor(240, 240, 240);
|
||||
float width = StringWidth(fVendor);
|
||||
@ -258,7 +271,7 @@ NormalPulseView::Draw(BRect rect)
|
||||
SetHighColor(240, 240, 240);
|
||||
|
||||
float width = StringWidth(fProcessor);
|
||||
MovePenTo(10 + (fChipRect.Width() - width) / 2, fChipRect.top + 48);
|
||||
MovePenTo(10 + (fChipRect.Width() - width) / 2, fChipRect.top + 53);
|
||||
DrawString(fProcessor);
|
||||
|
||||
char buffer[64];
|
||||
@ -271,7 +284,7 @@ NormalPulseView::Draw(BRect rect)
|
||||
// We can't assume anymore that a CPU clock speed is always static.
|
||||
// Let's compute the best font size for the CPU speed string each time...
|
||||
width = StringWidth(buffer);
|
||||
MovePenTo(10 + (fChipRect.Width() - width) / 2, fChipRect.top + 58);
|
||||
MovePenTo(10 + (fChipRect.Width() - width) / 2, fChipRect.top + 62);
|
||||
DrawString(buffer);
|
||||
|
||||
PopState();
|
||||
|
@ -376,3 +376,107 @@ const unsigned char kViaLogo[] = {
|
||||
0xb2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x34, 0xb2, 0xc3, 0x4a,
|
||||
0x52, 0xc8, 0x79, 0xd1
|
||||
};
|
||||
|
||||
|
||||
const unsigned char kRiscVLogo[] = {
|
||||
0x6e, 0x63, 0x69, 0x66, 0x03, 0x03, 0xf6, 0xb2, 0x1a, 0x03, 0x2a, 0x31,
|
||||
0x72, 0x05, 0xff, 0x0b, 0x06, 0x08, 0xaf, 0xfd, 0xc0, 0x6c, 0xb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0a, 0x00, 0x02, 0x08, 0x09, 0x00
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user