mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Dot not allow virtual method override for DrawTextChar(), clarify the DrawTextChar1bpp method should be overridden (i.e. by the SDL surface DC) when a higher performance optimized routine is available
This commit is contained in:
@@ -426,7 +426,7 @@ namespace WLGUI {
|
|||||||
virtual Handle SelectFont(Handle newValue);
|
virtual Handle SelectFont(Handle newValue);
|
||||||
virtual bool TextOut(long x,long y,const char *str/*TODO UTF-8*/);
|
virtual bool TextOut(long x,long y,const char *str/*TODO UTF-8*/);
|
||||||
virtual bool DrawTextChar1bpp(long x,long y,FontHandle::Bitmap &bmp);
|
virtual bool DrawTextChar1bpp(long x,long y,FontHandle::Bitmap &bmp);
|
||||||
virtual bool DrawTextChar(long x,long y,FontHandle::Bitmap &bmp);
|
bool DrawTextChar(long x,long y,FontHandle::Bitmap &bmp);
|
||||||
|
|
||||||
static DevicePixel GetPixel_stub(Obj &obj,long x,long y);
|
static DevicePixel GetPixel_stub(Obj &obj,long x,long y);
|
||||||
static void SetPixel_stub(Obj &obj,long x,long y,const DevicePixel c);
|
static void SetPixel_stub(Obj &obj,long x,long y,const DevicePixel c);
|
||||||
@@ -801,6 +801,7 @@ namespace WLGUI {
|
|||||||
return InvalidHandleValue;
|
return InvalidHandleValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* NTS: Override this method if you have a faster more optimized routine for 1bpp bitmap font rendering */
|
||||||
bool Obj::DrawTextChar1bpp(long x,long y,FontHandle::Bitmap &bmp) {
|
bool Obj::DrawTextChar1bpp(long x,long y,FontHandle::Bitmap &bmp) {
|
||||||
long dx = x + bmp.dx;
|
long dx = x + bmp.dx;
|
||||||
for (unsigned int subx=0;subx < bmp.dw;subx++) {
|
for (unsigned int subx=0;subx < bmp.dw;subx++) {
|
||||||
|
Reference in New Issue
Block a user