Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/KOMETA/qtSimpleGraph/commit/30cd4c00be0015e90089de731e376c973cf0f93e You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fix take color

main
Artem Proskurnev 4 years ago
parent 1bc0825aca
commit 30cd4c00be
  1. 4
      qtsgraph.cpp

@ -191,7 +191,7 @@ TPixel QTSGraph::ReadMousePosition()
TPixel t;
t.x = MouseMovePosition.x();
t.y = MouseMovePosition.y();
t.color = GetPixel(t.x, t.y);
t.color = Canvas.toImage().pixelColor(t.x, t.y).rgba() % 0x1000000;
if(SwapYAxis) t.y = Canvas.height() - t.y - 1;
if(MoveOtoCenter)
{
@ -206,7 +206,7 @@ TPixel QTSGraph::GetLastMouseClickPosition()
TPixel t;
t.x = LastMouseClickPosition.x();
t.y = LastMouseClickPosition.y();
t.color = GetPixel(t.x, t.y);
t.color = Canvas.toImage().pixelColor(t.x, t.y).rgba() % 0x1000000;
if(SwapYAxis) t.y = Canvas.height() - t.y - 1;
if(MoveOtoCenter)
{

Loading…
Cancel
Save