mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-31 14:22:38 -06:00
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:
parent
df6c02fc5b
commit
988c7c8a7f
6 changed files with 16 additions and 431 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue