~ubuntu-branches/ubuntu/raring/lmms/raring-proposed

« back to all changes in this revision

Viewing changes to plugins/zynaddsubfx/fltk/src/fl_read_image_mac.cxx

  • Committer: Charlie Smotherman
  • Date: 2012-12-05 22:08:38 UTC
  • mfrom: (33.1.7 lmms_0.4.13)
  • Revision ID: cjsmo@cableone.net-20121205220838-09pjfzew9m5023hr
* New  Upstream release.
  - Minor tweaking to ZynAddSubFX, CALF, SWH plugins  and Stefan Fendt's RC
    filters.
  - Added UI fixes: Magnentic effect of knobs and Piano-roll fixes
  - Updated German localization and copyright year
* debian/lmms-common.install:
  - added /usr/share/applications so the lmms.desktop file will correctly
    install (LP: #863366)
  - This should also fix the Software Center not displaying lmms in sound
    and video (LP: #824231)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
 
// "$Id: fl_read_image_mac.cxx 7670 2010-07-09 17:29:35Z manolo $"
 
2
// "$Id: fl_read_image_mac.cxx 8362 2011-02-02 18:39:34Z manolo $"
3
3
//
4
4
// WIN32 image reading routines for the Fast Light Tool Kit (FLTK).
5
5
//
6
 
// Copyright 1998-2009 by Bill Spitzak and others.
 
6
// Copyright 1998-2010 by Bill Spitzak and others.
7
7
//
8
8
// This library is free software; you can redistribute it and/or
9
9
// modify it under the terms of the GNU Library General Public
26
26
//
27
27
 
28
28
#include <config.h>
29
 
extern unsigned char *MACbitmapFromRectOfWindow(Fl_Window *win, int x, int y, int w, int h, int *bytesPerPixel);
30
29
 
31
30
//
32
31
// 'fl_read_image()' - Read an image from the current window or off-screen buffer.
54
53
  else { // reading from current window
55
54
    Fl_Window *window = Fl_Window::current();
56
55
    while(window->window()) window = window->window();
57
 
    base = MACbitmapFromRectOfWindow(window,x,y,w,h,&delta);
 
56
    base = Fl_X::bitmap_from_window_rect(window,x,y,w,h,&delta);
58
57
    rowBytes = delta*w;
59
58
    x = y = 0;
60
59
    }
73
72
      pdst[2] = psrc[2];  // B
74
73
    }
75
74
  }
76
 
  if(fl_window != NULL) delete base;
 
75
  if(fl_window != NULL) delete[] base;
77
76
  return p;
78
77
}
79
78
 
80
79
 
81
80
//
82
 
// End of "$Id: fl_read_image_mac.cxx 7670 2010-07-09 17:29:35Z manolo $".
 
81
// End of "$Id: fl_read_image_mac.cxx 8362 2011-02-02 18:39:34Z manolo $".
83
82
//