mirror of
https://github.com/UzixLS/KernelEx.git
synced 2025-07-19 07:21:20 +03:00
import KernelEx-4.5-RC5
This commit is contained in:
@ -33,7 +33,7 @@ ScriptCache::~ScriptCache()
|
||||
DeleteCriticalSection(&cs);
|
||||
}
|
||||
|
||||
SCRIPT_CACHE ScriptCache::GetCache(HFONT hFont)
|
||||
SCRIPT_CACHE ScriptCache::GetCache(FONTUID hFont)
|
||||
{
|
||||
list<FONTCACHE>::const_iterator it;
|
||||
for (it = cache.begin(); it != cache.end(); it++)
|
||||
@ -44,7 +44,7 @@ SCRIPT_CACHE ScriptCache::GetCache(HFONT hFont)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void ScriptCache::SetCache(HFONT hFont,SCRIPT_CACHE newcache)
|
||||
void ScriptCache::SetCache(FONTUID hFont,SCRIPT_CACHE newcache)
|
||||
{
|
||||
list<FONTCACHE>::iterator it;
|
||||
for (it = cache.begin(); it != cache.end(); it++)
|
||||
@ -73,22 +73,6 @@ void ScriptCache::SetCache(HFONT hFont,SCRIPT_CACHE newcache)
|
||||
}
|
||||
}
|
||||
|
||||
void ScriptCache::ResetCache(HFONT hFont)
|
||||
{
|
||||
Lock();
|
||||
list<FONTCACHE>::iterator it;
|
||||
for (it = cache.begin(); it != cache.end(); it++)
|
||||
{
|
||||
if (it->hFont == hFont)
|
||||
{
|
||||
ScriptFreeCache(&it->cache);
|
||||
cache.erase(it);
|
||||
break;
|
||||
}
|
||||
}
|
||||
Unlock();
|
||||
}
|
||||
|
||||
void ScriptCache::Lock()
|
||||
{
|
||||
EnterCriticalSection(&cs);
|
||||
|
Reference in New Issue
Block a user