Ignore:
Timestamp:
Oct 19, 2008, 6:22:08 PM (11 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Made Cocoa driver BEAUTIFUL ('fixed' default font size to constant values to make the look a bit more natural)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver/cocoa.m

    r2962 r3046  
    216216        _bkg_colors = malloc(_w * _h * sizeof(NSColor*));
    217217
    218         [[self window] setContentSize: NSMakeSize(caca_get_canvas_width(dp->cv) * _font_rect.size.width,
    219                                                   caca_get_canvas_height(dp->cv) * _font_rect.size.height)];
     218      //  [[self window] setContentSize: NSMakeSize(caca_get_canvas_width(dp->cv) * _font_rect.size.width,
     219     //                                             caca_get_canvas_height(dp->cv) * _font_rect.size.height)];
     220          [[self window] setContentSize: NSMakeSize(caca_get_canvas_width(dp->cv) * 8,
     221                                                    caca_get_canvas_height(dp->cv) * 13)];
     222
    220223    }
    221224}
     
    249252
    250253    int x, y;
    251     float fw = _font_rect.size.width;
    252     float fh = _font_rect.size.height;
     254    float fw = 8;//_font_rect.size.width;
     255    float fh = 13;//_font_rect.size.height;
    253256    uint32_t* attrs;
    254257    uint32_t* chars = _chars;
Note: See TracChangeset for help on using the changeset viewer.