Commit 1148de7a authored by Felix Paul Kühne's avatar Felix Paul Kühne

mac: expose used architecture in debug screen

parent f24519dc
......@@ -490,6 +490,19 @@ bool VlcPluginMac::handle_event(void *event)
CTLineDraw(textLine, cgContext);
CFRelease(textLine);
CFRelease(attRef);
// expose arch
#ifdef __x86_64__
attRef = CFAttributedStringCreate(kCFAllocatorDefault, CFSTR("Intel, 64-bit"), stylesDict);
#else
attRef = CFAttributedStringCreate(kCFAllocatorDefault, CFSTR("Intel, 32-bit"), stylesDict);
#endif
textLine = CTLineCreateWithAttributedString(attRef);
textRect = CTLineGetImageBounds(textLine, cgContext);
CGContextSetTextPosition(cgContext, ((windowWidth - textRect.size.width) / 2), ((windowHeight - textRect.size.height) / 2) - 65.);
CTLineDraw(textLine, cgContext);
CFRelease(textLine);
CFRelease(attRef);
CFRelease(stylesDict);
#else
// draw a black rect
......
......@@ -104,6 +104,19 @@ void VlcWindowlessMac::drawNoPlayback(CGContextRef cgContext)
CTLineDraw(textLine, cgContext);
CFRelease(textLine);
CFRelease(attRef);
// expose arch
#ifdef __x86_64__
attRef = CFAttributedStringCreate(kCFAllocatorDefault, CFSTR("Intel, 64-bit"), stylesDict);
#else
attRef = CFAttributedStringCreate(kCFAllocatorDefault, CFSTR("Intel, 32-bit"), stylesDict);
#endif
textLine = CTLineCreateWithAttributedString(attRef);
textRect = CTLineGetImageBounds(textLine, cgContext);
CGContextSetTextPosition(cgContext, ((windowWidth - textRect.size.width) / 2), ((windowHeight - textRect.size.height) / 2) - 65.);
CTLineDraw(textLine, cgContext);
CFRelease(textLine);
CFRelease(attRef);
CFRelease(stylesDict);
#else
// draw a black rect
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment