whitespace + comments

This commit is contained in:
Konstantin Käfer
2014-03-06 15:29:04 +01:00
parent 4de8674f20
commit 50d4c97b64
2 changed files with 2 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ int Request::curl_progress_callback(void *ptr, double dltotal, double dlnow, dou
void Request::initialize() {
// curl init
curl_global_init(CURL_GLOBAL_ALL);
curl_share = curl_share_init();
curl_share_setopt(curl_share, CURLSHOPT_LOCKFUNC, curl_share_lock);
curl_share_setopt(curl_share, CURLSHOPT_UNLOCKFUNC, curl_share_unlock);

View File

@@ -90,8 +90,6 @@ void Sprite::parseJSON(const std::string& data) {
if (value.HasMember("height")) height = value["height"].GetInt();
if (value.HasMember("pixelRatio")) pixelRatio = value["height"].GetInt();
fprintf(stderr, "");
pos.insert({ name, { x, y, width, height, pixelRatio } });
}
}
@@ -238,7 +236,7 @@ ImagePosition Sprite::getPosition(const std::string& name, bool repeating) {
void Sprite::bind(bool linear) {
if (!width || !height) {
fprintf(stderr, "trying to bind texture without dimension\n");
// fprintf(stderr, "trying to bind texture without dimension\n");
return;
}