mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Draw: iml scaling fixes
This commit is contained in:
parent
121420beb9
commit
a93b234018
4 changed files with 12 additions and 3 deletions
|
|
@ -116,6 +116,7 @@ String GetImageSrc(ImageFn img)
|
|||
q = il.GetCount();
|
||||
il.Add(img);
|
||||
PNGEncoder png;
|
||||
(*img)();
|
||||
png.SaveFile(AppendFileName(targetdir, ImgName(q)),(*img)());
|
||||
}
|
||||
return ImgName(q);
|
||||
|
|
|
|||
|
|
@ -158,9 +158,9 @@ Image Downscale6x(const Image& src)
|
|||
return Image(h);
|
||||
}
|
||||
|
||||
int DPIScaleGlobal_;
|
||||
double DPIScaleGlobalF_;
|
||||
double IDPIScaleGlobalF_;
|
||||
int DPIScaleGlobal_ = 2;
|
||||
double DPIScaleGlobalF_ = 1;
|
||||
double IDPIScaleGlobalF_ = 1;
|
||||
|
||||
void SetDPIScale(int scale)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
//#BLITZ_APPROVE
|
||||
|
||||
#ifdef VERSION
|
||||
#undef VERSION
|
||||
#endif
|
||||
|
||||
#define IMAGE_META(k, v)
|
||||
#define IMAGE_VERSION(v)
|
||||
#define IMAGE_SCAN(s)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
//#BLITZ_APPROVE
|
||||
|
||||
#ifdef VERSION
|
||||
#undef VERSION
|
||||
#endif
|
||||
|
||||
#define VERSION(v)
|
||||
#define PREMULTIPLIED
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue