Fixed misspelled variable

This commit is contained in:
2019-12-19 17:32:07 +01:00
parent a2f2e38a06
commit dcd26f76ef
5 changed files with 8 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ void PaintingArea::setUp(int maxWidth, int maxHeight){
int PaintingArea::addLayer(int width, int height, int widthOffset, int heightOffset, ImageType type){
LayerObject newLayer;
newLayer.width = width;
newLayer.hight = height;
newLayer.height = height;
newLayer.widthOffset = widthOffset;
newLayer.hightOffset = heightOffset;
if(type==ImageType::Raster_Image){
@@ -216,7 +216,7 @@ int PaintingArea::getWidthOfActive(){
}
int PaintingArea::getHeightOfActive(){
return this->layerBundle[activeLayer].hight;
return this->layerBundle[activeLayer].height;
}
// If a mouse button is pressed check if it was the
@@ -317,7 +317,7 @@ void PaintingArea::assembleLayers(bool forSaving){
QImage cpy = layer.image->getDisplayable(layer.alpha);
QColor clr_0;
QColor clr_1;
for(int y=0; y<layer.hight; y++){
for(int y=0; y<layer.height; y++){
if(layer.hightOffset+y<0) continue;
if(layer.hightOffset+y>=maxHeight) break;
for(int x=0; x<layer.width; x++){
@@ -345,7 +345,7 @@ void PaintingArea::createTempLayerAfter(int idx){
if(idx>=0){
LayerObject newLayer;
newLayer.alpha = 255;
newLayer.hight = layerBundle[idx].hight;
newLayer.height = layerBundle[idx].height;
newLayer.width = layerBundle[idx].width;
newLayer.hightOffset = layerBundle[idx].hightOffset;
newLayer.widthOffset = layerBundle[idx].widthOffset;

View File

@@ -16,7 +16,7 @@
struct LayerObject{
IntelliImage* image;
int width;
int hight;
int height;
int widthOffset;
int hightOffset;
int alpha=255;

View File

@@ -56,7 +56,7 @@ void IntelliTool::createToolLayer(){
void IntelliTool::mergeToolLayer(){
QColor clr_0;
QColor clr_1;
for(int y=0; y<Active->hight; y++){
for(int y=0; y<Active->height; y++){
for(int x=0; x<Active->width; x++){
clr_0=Active->image->imageData.pixelColor(x,y);
clr_1=Canvas->image->imageData.pixelColor(x,y);

View File

@@ -57,7 +57,7 @@ void IntelliToolFloodFill::onMouseLeftPressed(int x, int y){
Canvas->image->drawPixel(top,newColor);
Q.push(top);
}
if((down.y() < Canvas->hight) && (Canvas->image->getPixelColor(down) != newColor) && (Active->image->getPixelColor(down) == oldColor)){
if((down.y() < Canvas->height) && (Canvas->image->getPixelColor(down) != newColor) && (Active->image->getPixelColor(down) == oldColor)){
Canvas->image->drawPixel(down,newColor);
Q.push(down);
}

View File

@@ -56,7 +56,7 @@ void IntelliToolPolygon::onMouseLeftReleased(int x, int y){
QColor colorTwo(colorPicker->getSecondColor());
colorTwo.setAlpha(alphaInner);
for(int i = 0; i < Active->width; i++){
for(int j = 0; j < Active->hight; j++){
for(int j = 0; j < Active->height; j++){
Point = QPoint(i,j);
if(IntelliHelper::isInPolygon(Triangles,Point)){
this->Canvas->image->drawPixel(Point, colorTwo);