~hikiko/nux/arb-srgba-shader

« back to all changes in this revision

Viewing changes to Nux/Canvas.cpp

  • Committer: Travis Watkins
  • Date: 2011-08-03 10:34:36 UTC
  • mfrom: (409 nux-logger-fix)
  • mto: (454.5.1 nux-gles)
  • mto: This revision was merged to the branch mainline in revision 501.
  • Revision ID: travis.watkins@linaro.org-20110803103436-biz9c9930l2refsi
merge with lp:nux

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Authored by: Mirco Müller <mirco.mueller@canonical.com
17
17
 */
18
18
 
19
 
#include "Nux/Canvas.h"
 
19
 
 
20
#include "Canvas.h"
20
21
 
21
22
namespace nux
22
23
{
88
89
 
89
90
    if (ptr == NULL || stride == 0) {
90
91
      g_debug ("Invalid surface!");
 
92
 
 
93
      delete bitmap_data;
91
94
      return NULL;
92
95
    }
93
96