Permalink
Browse files

Now working for favicons larger than 16x16px

  • Loading branch information...
1 parent e78a392 commit ef308a3809ddeb133f018acbffcaa67d2d5e1c14 @tommoor committed Feb 7, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 tinycon.js
  2. +2 −2 tinycon.min.js
View
@@ -3,7 +3,7 @@
* Tom Moor, http://tommoor.com
* Copyright (c) 2012 Tom Moor
* MIT Licensed
- * @version 0.1
+ * @version 0.2
*/
(function(){
@@ -115,7 +115,7 @@
context.clearRect(0, 0, 16, 16);
// draw original favicon
- context.drawImage(faviconImage, 0, 0);
+ context.drawImage(faviconImage, 0, 0, faviconImage.width, faviconImage.height, 0, 0, 16, 16);
// draw bubble over the top
if (num > 0) drawBubble(context, num, colour);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit ef308a3

Please sign in to comment.