whitespace + comments
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user