StelQGLRenderer.hpp   StelQGLRenderer.hpp 
skipping to change at line 749 skipping to change at line 749
//! //!
//! @param params Text drawing parameters. //! @param params Text drawing parameters.
//! @param painter QPainter used for painting to the viewport. //! @param painter QPainter used for painting to the viewport.
//! @param baseX Base X coordinate of the text on the screen (be fore shifting, etc). //! @param baseX Base X coordinate of the text on the screen (be fore shifting, etc).
//! @param baseY Base Y coordinate of the text on the screen (be fore shifting, etc). //! @param baseY Base Y coordinate of the text on the screen (be fore shifting, etc).
//! @param projector Projector used to project the text to the scree n. //! @param projector Projector used to project the text to the scree n.
void drawTextGravityHelper void drawTextGravityHelper
(const TextParams& params, QPainter& painter, const int base X, const int baseY, StelProjectorP projector); (const TextParams& params, QPainter& painter, const int base X, const int baseY, StelProjectorP projector);
//! Get the placeholder texture, lazily loading if it's not loaded y et. //! Get the placeholder texture, lazily loading if it's not loaded y et.
StelQGLTextureBackend* getPlaceholderTexture() StelQGLTextureBackend* getPlaceholderTexture(bool debug=false)
{ {
if(NULL != placeholderTexture) {return placeholderTexture;} if(NULL != placeholderTexture) {return placeholderTexture;}
int color = 0;
if (debug)
color = 0x00FFFF00;
const int placeholderSize = 512; const int placeholderSize = 512;
const int cellSize = 16; const int cellSize = 16;
QImage image(placeholderSize, placeholderSize, QImage::Forma t_RGB888); QImage image(placeholderSize, placeholderSize, QImage::Forma t_RGB888);
for(int y = 0; y < placeholderSize; ++y) for(int y = 0; y < placeholderSize; ++y)
{ {
for (int x = 0; x < placeholderSize; x++) for (int x = 0; x < placeholderSize; x++)
{ {
image.setPixel(x, y, (x / cellSize) % 2 == ( y / cellSize) % 2 ? 0 : 0x00FFFF00); image.setPixel(x, y, (x / cellSize) % 2 == ( y / cellSize) % 2 ? 0 : color);
} }
} }
placeholderTexture = placeholderTexture =
StelQGLTextureBackend::constructFromImage(this, QStr ing(), TextureParams(), image); StelQGLTextureBackend::constructFromImage(this, QStr ing(), TextureParams(), image);
return placeholderTexture; return placeholderTexture;
} }
//! Implements drawRect() and drawTexturedRect(). //! Implements drawRect() and drawTexturedRect().
//! //!
 End of changes. 3 change blocks. 
2 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/