External context support in RichText / RichEdit

git-svn-id: svn://ultimatepp.org/upp/trunk@972 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
rylek 2009-03-18 01:03:40 +00:00
parent 8085dfdde4
commit 178e234cf7
23 changed files with 173 additions and 52 deletions

View file

@ -17,7 +17,7 @@ struct scImageMaker : LRUCache<Image>::Maker {
bool paintonly;
virtual String Key() const {
String q = m->Key();
// String q = m->Key();
return m->Key();
}
virtual int Make(Image& object) const {
@ -33,6 +33,11 @@ struct scImageMaker : LRUCache<Image>::Maker {
static int sMaxSize;
static int sMaxSizeMax = 4000000;
void ClearMakeImageCache()
{
sImageCache().Clear();
}
void SetMakeImageCacheMax(int m)
{
sMaxSizeMax = m;