mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-06 14:24:23 +00:00
-Replaced tinyjpg for jpgd (public domain), fixes progressive encoded jpgs and speeds up. Closes #2040
-Removed support of loading BitMap as image, now it must be load as a pnm, also closes #2040
This commit is contained in:
+7
-3
@@ -1636,12 +1636,16 @@ int64_t String::to_int64() const {
|
||||
return integer*sign;
|
||||
}
|
||||
|
||||
int String::to_int(const char* p_str) {
|
||||
int String::to_int(const char* p_str,int p_len) {
|
||||
|
||||
|
||||
int to=0;
|
||||
while(p_str[to]!=0 && p_str[to]!='.')
|
||||
to++;
|
||||
if (p_len>=0)
|
||||
to=p_len;
|
||||
else {
|
||||
while(p_str[to]!=0 && p_str[to]!='.')
|
||||
to++;
|
||||
}
|
||||
|
||||
|
||||
int integer=0;
|
||||
|
||||
Reference in New Issue
Block a user