mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
22 lines
453 B
Text
22 lines
453 B
Text
#include "CtrlCore.h"
|
|
|
|
NAMESPACE_UPP
|
|
|
|
#define TFILE <CtrlCore/CtrlCore.t>
|
|
#include <Core/t.h>
|
|
|
|
static Image sRenderGlyph(int cx, int x, Font font, int chr, int py, int pcy)
|
|
{
|
|
ImageDraw iw(cx, pcy);
|
|
iw.DrawRect(0, 0, cx, pcy, White);
|
|
iw.DrawText(x, -py, WString(chr, 1), font, Black);
|
|
return iw;
|
|
}
|
|
|
|
void SetRenderGlyph(Image (*f)(int cx, int x, Font font, int chr, int py, int pcy));
|
|
|
|
INITBLOCK {
|
|
SetRenderGlyph(sRenderGlyph);
|
|
}
|
|
|
|
END_UPP_NAMESPACE
|