uppsrc: SSE2->SIMD, Core: another decode fix

git-svn-id: svn://ultimatepp.org/upp/trunk@14652 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-07-03 11:21:07 +00:00
parent df6c02fc5b
commit 988c7c8a7f
6 changed files with 16 additions and 431 deletions

View file

@ -247,7 +247,6 @@ bool RichObject::Set(const String& _type_name, const Value& _data, Size maxsiz
bool RichObject::Read(const String& _type_name, const String& _data, Size sz, void *context)
{
NewSerial();
type_name = _type_name;
RichObjectType *t = Map().Get(type_name, NULL);
if(t) {
@ -258,10 +257,12 @@ bool RichObject::Read(const String& _type_name, const String& _data, Size sz,
pixel_size = type->GetPixelSize(data, context);
AdjustPhysicalSize();
size = sz;
NewSerial();
return true;
}
data = _data;
physical_size = pixel_size = size = sz;
NewSerial();
return false;
}