Browse Source

fixed sign problem

master
Odilitime 5 years ago
parent
commit
3c5085c10b
  1. 3
      src/graphics/components/TextComponent.cpp

3
src/graphics/components/TextComponent.cpp

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
#include "TextComponent.h"
#include <iostream>
#include <ctime>
#include <climits>
extern TextRasterizerCache *rasterizerCache;
@ -120,7 +121,7 @@ void TextComponent::rasterize(const int rawX, const int rawY) { @@ -120,7 +121,7 @@ void TextComponent::rasterize(const int rawX, const int rawY) {
request.sourceStartX = rasterStartX;
request.sourceStartY = rasterStartY;
if (this->win) {
request.maxTextureSize = this->win->maxTextureSize;
request.maxTextureSize = this->win->maxTextureSize & INT_MAX;
} // else called from input cstr, no win yet
request.noWrap = noWrap;
//std::cout << "rasterizing [" << text << "] @" << rawX << " availableWidth: " << availableWidth << " sourceStartX: " << rasterStartX << " noWrap: " << noWrap << std::endl;

Loading…
Cancel
Save