Commit 19604aae authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

retina bugs

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60081 954022d7-b5bf-4e40-9824-e11837661b57
parent 7dac08af
......@@ -2967,7 +2967,7 @@ function CEditorPage(api)
{
var _interval = (CollaborativeEditing.m_nUseType <= 0) ? oWordControl.m_nIntervalSlowAutosave : oWordControl.m_nIntervalFastAutosave;
if ((_curTime - oWordControl.m_nLastAutosaveTime) > _interval)
if ((_curTime - oWordControl.m_nLastAutosaveTime) > _interval && !oWordControl.m_oDrawingDocument.TransitionSlide.IsPlaying())
{
if (History.Have_Changes() == true)
{
......
......@@ -140,6 +140,28 @@ function CTransitionAnimation(htmlpage)
this.Rect.h = _h >> 0;
}
this.SetBaseTransform = function()
{
if (this.DemonstrationObject == null)
{
var ctx1 = this.HtmlPage.m_oEditor.HtmlElement.getContext('2d');
if (this.HtmlPage.bIsRetinaSupport)
ctx1.setTransform(2, 0, 0, 2, 0, 0);
else
ctx1.setTransform(1, 0, 0, 1, 0, 0);
this.HtmlPage.m_oOverlayApi.SetBaseTransform();
}
else
{
var _ctx1 = oThis.DemonstrationObject.Canvas.getContext('2d');
_ctx1.setTransform(1, 0, 0, 1, 0, 0);
var _ctx2 = oThis.DemonstrationObject.Overlay.getContext('2d');
_ctx2.setTransform(1, 0, 0, 1, 0, 0);
}
}
this.DrawImage1 = function(slide_num, _not_use_prev)
{
if (undefined === slide_num)
......@@ -349,6 +371,8 @@ function CTransitionAnimation(htmlpage)
return;
}
oThis.SetBaseTransform();
if (oThis.TimerId === null)
{
oThis.Params = { IsFirstAfterHalf : true };
......@@ -482,6 +506,8 @@ function CTransitionAnimation(htmlpage)
return;
}
oThis.SetBaseTransform();
var _xDst = oThis.Rect.x;
var _yDst = oThis.Rect.y;
var _wDst = oThis.Rect.w;
......@@ -622,6 +648,8 @@ function CTransitionAnimation(htmlpage)
return;
}
oThis.SetBaseTransform();
if (oThis.TimerId === null)
{
var _ctx1 = null;
......@@ -668,7 +696,6 @@ function CTransitionAnimation(htmlpage)
oThis.HtmlPage.m_oOverlayApi.CheckRect(_xDst, _yDst, _wDst, _hDst);
_ctx2 = oThis.HtmlPage.m_oOverlayApi.m_oContext;
_ctx2.setTransform(1,0,0,1,0,0);
}
else
{
......@@ -1173,6 +1200,8 @@ function CTransitionAnimation(htmlpage)
return;
}
oThis.SetBaseTransform();
var _xDst = oThis.Rect.x;
var _yDst = oThis.Rect.y;
var _wDst = oThis.Rect.w;
......@@ -1189,7 +1218,6 @@ function CTransitionAnimation(htmlpage)
oThis.HtmlPage.m_oOverlayApi.CheckRect(_xDst, _yDst, _wDst, _hDst);
_ctx2 = oThis.HtmlPage.m_oOverlayApi.m_oContext;
_ctx2.setTransform(1,0,0,1,0,0);
}
else
{
......@@ -1525,6 +1553,8 @@ function CTransitionAnimation(htmlpage)
return;
}
oThis.SetBaseTransform();
if (oThis.TimerId === null)
{
var _ctx1 = null;
......@@ -1674,6 +1704,8 @@ function CTransitionAnimation(htmlpage)
return;
}
oThis.SetBaseTransform();
if (oThis.TimerId === null)
{
var _ctx1 = null;
......@@ -1823,6 +1855,8 @@ function CTransitionAnimation(htmlpage)
return;
}
oThis.SetBaseTransform();
if (oThis.TimerId === null)
{
var _ctx1 = null;
......@@ -2283,6 +2317,8 @@ function CTransitionAnimation(htmlpage)
return;
}
oThis.SetBaseTransform();
var _xDst = oThis.Rect.x;
var _yDst = oThis.Rect.y;
var _wDst = oThis.Rect.w;
......@@ -2479,7 +2515,7 @@ function CTransitionAnimation(htmlpage)
global_MatrixTransformer.RotateRadAppend(localTransform, _angle);
global_MatrixTransformer.TranslateAppend(localTransform, _xC, _yC);
_ctx2.setTransform(localTransform.sx, localTransform.shy, localTransform.shx, localTransform.sy, localTransform.tx, localTransform.ty);
_ctx2.transform(localTransform.sx, localTransform.shy, localTransform.shx, localTransform.sy, localTransform.tx, localTransform.ty);
if (null != oThis.CacheImage2.Image)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment