Skip to content

Commit

Permalink
canvas workaround scaling description added
Browse files Browse the repository at this point in the history
  • Loading branch information
elevenetc committed Sep 9, 2015
1 parent 8fa570f commit 10c429f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ protected DraggableView(
getResources().getDisplayMetrics().densityDpi
);

float scale = 0.9f;//TODO
//TODO: replace workaround with scaling
//it is used to enlarge canvas zone
//otherwise camera's frustum cuts bitmap
float scale = 0.9f;
xCanvasTranslation = (int) (bitmap.getWidth() * scale);
yCanvasTranslation = (int) (bitmap.getWidth() * scale);

Expand Down

0 comments on commit 10c429f

Please sign in to comment.