}
/* Draw background texture */
- v2u32 sourcesize = texture->getSize();
+ v2u32 sourcesize = texture->getOriginalSize();
driver->draw2DImage(texture,
core::rect<s32>(0, 0, screensize.X, screensize.Y),
core::rect<s32>(0, 0, sourcesize.X, sourcesize.Y),
return;
/* Draw background texture */
- v2u32 sourcesize = texture->getSize();
+ v2u32 sourcesize = texture->getOriginalSize();
driver->draw2DImage(texture,
core::rect<s32>(0, 0, screensize.X, screensize.Y),
core::rect<s32>(0, 0, sourcesize.X, sourcesize.Y),
if(!texture)
return;
- f32 mult = (((f32)screensize.Width / 2)) /
+ f32 mult = (((f32)screensize.Width / 2.0)) /
((f32)texture->getOriginalSize().Width);
v2s32 splashsize(((f32)texture->getOriginalSize().Width) * mult,
driver->draw2DImage(texture, splashrect,
core::rect<s32>(core::position2d<s32>(0,0),
- core::dimension2di(texture->getSize())),
+ core::dimension2di(texture->getOriginalSize())),
NULL, NULL, true);
}
}
driver->draw2DImage(texture, rect,
core::rect<s32>(core::position2d<s32>(0,0),
- core::dimension2di(texture->getSize())),
+ core::dimension2di(texture->getOriginalSize())),
NULL, NULL, true);
}
}
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, targetfile);
-
+ curl_easy_setopt(curl, CURLOPT_USERAGENT, (std::string("Minetest ")+minetest_version_hash).c_str());
res = curl_easy_perform(curl);
if (res != CURLE_OK) {
errorstream << "File at url \"" << url