git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added workaround for broken Flash text selection
[swftools.git]
/
lib
/
rfxswf.c
diff --git
a/lib/rfxswf.c
b/lib/rfxswf.c
index
c4f42e8
..
f6353a3
100644
(file)
--- a/
lib/rfxswf.c
+++ b/
lib/rfxswf.c
@@
-415,7
+415,6
@@
float swf_GetF16(TAG * t)
U32 f2 = (f1&0x8000)<<16; //sign
f2 |= ((f1&0x7c00)<<13)+(0x40000000-(0x4000<<13)); //exp
f2 |= (f1&0x03ff)<<13; //mantissa
U32 f2 = (f1&0x8000)<<16; //sign
f2 |= ((f1&0x7c00)<<13)+(0x40000000-(0x4000<<13)); //exp
f2 |= (f1&0x03ff)<<13; //mantissa
- fprintf(stderr, "%f = %d-%d-%x\n", *(float*)&f2, f1>>15, (f1>>10)&31, f1&0x3ff);
return *(float*)&f2;
}
void swf_SetF16(TAG * t, float f)
return *(float*)&f2;
}
void swf_SetF16(TAG * t, float f)