Skip to content

Commit

Permalink
9-patch compatibility for API 21+
Browse files Browse the repository at this point in the history
  • Loading branch information
FokkeZB committed Jun 13, 2015
1 parent 96cff82 commit 02aa266
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/jobs.js
Expand Up @@ -161,10 +161,16 @@ exports.run = function run(spec, cfg, callback) {
// draw black pixels
convert = convert
.fill('black')

// stretchable area
.drawPoint(1, 0)
.drawPoint(containWidth, 0)
.drawPoint(0, 1)
.drawPoint(0, containHeight);
.drawPoint(0, containHeight)

// padding box (required since API 21)
.drawLine(containWidth + 1, 2, containWidth + 1, containHeight - 1)
.drawLine(2, containHeight + 1, containWidth - 1, containHeight + 1);

// fill
} else {
Expand Down

0 comments on commit 02aa266

Please sign in to comment.