Commit 7a8bf967 authored by Halla Rempt's avatar Halla Rempt

Make link on Windows

And fix spello
parent 37770525
......@@ -78,15 +78,15 @@ struct KisPaintInformation::Private {
}
};
KisPaintInformation::DistanceInformaionRegistrar::
DistanceInformaionRegistrar(KisPaintInformation *_p, KisDistanceInformation *distanceInfo)
KisPaintInformation::DistanceInformationRegistrar::
DistanceInformationRegistrar(KisPaintInformation *_p, KisDistanceInformation *distanceInfo)
: p(_p)
{
p->d->registerDistanceInfo(distanceInfo);
}
KisPaintInformation::DistanceInformaionRegistrar::
~DistanceInformaionRegistrar()
KisPaintInformation::DistanceInformationRegistrar::
~DistanceInformationRegistrar()
{
p->d->unregisterDistanceInfo();
}
......@@ -206,10 +206,10 @@ qreal KisPaintInformation::drawingAngleSafe(const KisDistanceInformation &distan
return atan2(diff.y(), diff.x());
}
KisPaintInformation::DistanceInformaionRegistrar
KisPaintInformation::DistanceInformationRegistrar
KisPaintInformation::registerDistanceInformation(KisDistanceInformation *distance)
{
return DistanceInformaionRegistrar(this, distance);
return DistanceInformationRegistrar(this, distance);
}
qreal KisPaintInformation::drawingAngle() const
......
......@@ -62,10 +62,10 @@ public:
* of the return value. So if it doesn't work for some reason,
* please implement a proper copy c-tor
*/
class DistanceInformaionRegistrar {
class KRITAIMAGE_EXPORT DistanceInformationRegistrar {
public:
DistanceInformaionRegistrar(KisPaintInformation *_p, KisDistanceInformation *distanceInfo);
~DistanceInformaionRegistrar();
DistanceInformationRegistrar(KisPaintInformation *_p, KisDistanceInformation *distanceInfo);
~DistanceInformationRegistrar();
private:
KisPaintInformation *p;
};
......@@ -112,7 +112,7 @@ public:
qreal drawingAngleSafe(const KisDistanceInformation &distance) const;
DistanceInformaionRegistrar registerDistanceInformation(KisDistanceInformation *distance);
DistanceInformationRegistrar registerDistanceInformation(KisDistanceInformation *distance);
/**
* Current brush direction computed from the cursor movement
......
......@@ -155,7 +155,7 @@ KisOpenGLCanvas2::KisOpenGLCanvas2(KisCanvas2 *canvas, KisCoordinatesConverter *
slotConfigChanged();
KisConfig cfg;
d->openGLImageTextures->generateCheckerTexture(createCheckersImage(cfg.checkSize()));
//d->openGLImageTextures->generateCheckerTexture(createCheckersImage(cfg.checkSize()));
}
......@@ -198,7 +198,7 @@ void KisOpenGLCanvas2::initializeGL()
}
}
initializeCheckerShader();
//initializeCheckerShader();
initializeDisplayShader();
}
......@@ -548,7 +548,7 @@ void KisOpenGLCanvas2::renderCanvasGL() const
glClearColor(widgetBackgroundColor.redF(), widgetBackgroundColor.greenF(), widgetBackgroundColor.blueF(), 1.0);
glClear(GL_COLOR_BUFFER_BIT);
drawCheckers();
//drawCheckers();
drawImage();
}
......
......@@ -109,7 +109,7 @@ QPainterPath KisToolFreehandHelper::paintOpOutline(const QPointF &savedCursorPos
distanceInfo = *m_d->painterInfos.first()->dragDistance;
}
KisPaintInformation::DistanceInformaionRegistrar registrar =
KisPaintInformation::DistanceInformationRegistrar registrar =
info.registerDistanceInformation(&distanceInfo);
return settings->brushOutline(info, mode);
......
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