Skip to content

Commit

Permalink
Merge pull request #11 from CrystSw/bugfix
Browse files Browse the repository at this point in the history
キャンバスを画像として保存する際に背景が透過されていた問題の修正
  • Loading branch information
CrystSw authored Oct 31, 2020
2 parents 5898430 + ef8e9b4 commit c83a399
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions webroot/js/olinvas.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*==============================
Olinvas Client
--------------------------------
client ver.1.1.4
client ver.1.1.4.1
protocol ver.1.1
==============================*/

Expand Down Expand Up @@ -173,7 +173,9 @@ var serverPort = 13181;
break;

case 'ClearBoard-Echo':
ctx.clearRect(0, 0, canvas.width, canvas.height);
//ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = "rgb(255,255,255)";
ctx.fillRect(0, 0, canvas.width, canvas.height);
break;

case 'TooConnection-Echo':
Expand Down Expand Up @@ -362,6 +364,9 @@ var serverPort = 13181;
var mouseY = null;
var pointerId = null;

ctx.fillStyle = "rgb(255,255,255)";
ctx.fillRect(0, 0, canvas.width, canvas.height);

function drawStart(event){
if(event.pointerType === 'pen' && pointerId === null){
event.preventDefault();
Expand Down

0 comments on commit c83a399

Please sign in to comment.