~ubuntu-branches/debian/jessie/stellarium/jessie

« back to all changes in this revision

Viewing changes to src/image.cpp

Tags: upstream-0.9.1
Import upstream version 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
  // use alpha channel if present, otherwise use solid texture
39
39
  StelApp::getInstance().getTextureManager().setDefaultParams();
40
 
  image_tex = StelApp::getInstance().getTextureManager().createTexture(filename);  // what if it doesn't load?
 
40
  image_tex = StelApp::getInstance().getTextureManager().createTexture(filename.c_str());  // what if it doesn't load?
41
41
 
42
42
  int img_w, img_h;
43
43
  image_tex->getDimensions(img_w, img_h);
114
114
 
115
115
bool Image::update(double delta_time) {
116
116
 
 
117
        // Change delta_time to ms
 
118
        delta_time*=1000;
 
119
 
 
120
 
117
121
  if(image_ratio < 0) return 0;
118
122
 
119
123
  if(flag_alpha) {