Diff of /cocoa/ScintillaCocoa.mm [194057] .. [3b2f50]  Maximize  Restore

Switch to unified view

a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
...
...
1523
  paintingAllText = rcPaint.Contains(rcText);
1523
  paintingAllText = rcPaint.Contains(rcText);
1524
  bool succeeded = true;
1524
  bool succeeded = true;
1525
  Surface *sw = Surface::Allocate(SC_TECHNOLOGY_DEFAULT);
1525
  Surface *sw = Surface::Allocate(SC_TECHNOLOGY_DEFAULT);
1526
  if (sw)
1526
  if (sw)
1527
  {
1527
  {
1528
    CGContextSetAllowsAntialiasing((CGContextRef)gc,
1529
                                   vs.extraFontFlag != SC_EFF_QUALITY_NON_ANTIALIASED);
1530
#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5
1531
    if (CGContextSetAllowsFontSubpixelPositioning != NULL)
1532
      CGContextSetAllowsFontSubpixelPositioning((CGContextRef)gc,
1533
                      vs.extraFontFlag == SC_EFF_QUALITY_DEFAULT ||
1534
                      vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED);
1535
#endif
1528
    sw->Init(gc, wMain.GetID());
1536
    sw->Init(gc, wMain.GetID());
1529
    Paint(sw, rc);
1537
    Paint(sw, rc);
1530
    succeeded = paintState != paintAbandoned;
1538
    succeeded = paintState != paintAbandoned;
1531
    sw->Release();
1539
    sw->Release();
1532
    delete sw;
1540
    delete sw;