diff --git a/BBGE/Quad.cpp b/BBGE/Quad.cpp index 029e7fe..385bc24 100644 --- a/BBGE/Quad.cpp +++ b/BBGE/Quad.cpp @@ -181,10 +181,6 @@ void Quad::initQuad() autoWidth = autoHeight = 0; - - - repeatingTextureToFill = false; - drawGrid = 0; renderBorder = false; @@ -416,7 +412,6 @@ void Quad::renderGrid() const void Quad::repeatTextureToFill(bool on) { - repeatingTextureToFill = on; repeatTexture = on; refreshRepeatTextureToFill(); @@ -544,7 +539,7 @@ void Quad::flipVertical() void Quad::refreshRepeatTextureToFill() { - if (repeatingTextureToFill && texture) + if (repeatTexture && texture) { upperLeftTextureCoordinates.x = texOff.x; upperLeftTextureCoordinates.y = texOff.y; diff --git a/BBGE/Quad.h b/BBGE/Quad.h index 5cec299..fe8a7f5 100644 --- a/BBGE/Quad.h +++ b/BBGE/Quad.h @@ -62,7 +62,7 @@ public: void setDrawGridAlpha(size_t x, size_t y, float alpha); void repeatTextureToFill(bool on); void refreshRepeatTextureToFill(); - bool isRepeatingTextureToFill() const { return repeatingTextureToFill; } + bool isRepeatingTextureToFill() const { return repeatTexture; } void setGridPoints(bool vert, const std::vector &points); virtual void createStrip(bool stripVert, int num); float getStripSegmentSize() const; @@ -97,7 +97,6 @@ public: Vector repeatToFillScale; protected: - bool repeatingTextureToFill; float gridTimer; size_t xDivs, yDivs; Vector ** drawGrid;