From da3549dec74b765c362d6a2c1d53efe3036c9096 Mon Sep 17 00:00:00 2001 From: Jean-Yves Lamoureux Date: Sun, 19 Oct 2008 16:22:08 +0000 Subject: [PATCH] * Made Cocoa driver BEAUTIFUL ('fixed' default font size to constant values to make the look a bit more natural) --- caca/driver/cocoa.m | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/caca/driver/cocoa.m b/caca/driver/cocoa.m index f5d1c16..87c7e25 100644 --- a/caca/driver/cocoa.m +++ b/caca/driver/cocoa.m @@ -215,8 +215,11 @@ static BOOL s_quitting = NO; free(_bkg_colors); _bkg_colors = malloc(_w * _h * sizeof(NSColor*)); - [[self window] setContentSize: NSMakeSize(caca_get_canvas_width(dp->cv) * _font_rect.size.width, - caca_get_canvas_height(dp->cv) * _font_rect.size.height)]; + // [[self window] setContentSize: NSMakeSize(caca_get_canvas_width(dp->cv) * _font_rect.size.width, + // caca_get_canvas_height(dp->cv) * _font_rect.size.height)]; + [[self window] setContentSize: NSMakeSize(caca_get_canvas_width(dp->cv) * 8, + caca_get_canvas_height(dp->cv) * 13)]; + } } @@ -248,8 +251,8 @@ static BOOL s_quitting = NO; } int x, y; - float fw = _font_rect.size.width; - float fh = _font_rect.size.height; + float fw = 8;//_font_rect.size.width; + float fh = 13;//_font_rect.size.height; uint32_t* attrs; uint32_t* chars = _chars;