mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-01 15:52:41 -06:00
CtrlCore, Draw: LinuxGl adjustments
git-svn-id: svn://ultimatepp.org/upp/trunk@6199 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2763f89194
commit
c21ddc2d5e
9 changed files with 43 additions and 16 deletions
|
|
@ -6,6 +6,10 @@ NAMESPACE_UPP
|
|||
#include <WinGl/FontGl.h>
|
||||
#include <WinGl/ResGl.h>
|
||||
#endif
|
||||
#ifdef flagLINUXGL
|
||||
#include <LinuxGl/FontGl.h>
|
||||
#include <LinuxGl/ResGl.h>
|
||||
#endif
|
||||
|
||||
#define LLOG(x) // LOG(x)
|
||||
#define LTIMING(x) // TIMING(x)
|
||||
|
|
@ -31,7 +35,7 @@ WString TextUnicode(const char *s, int n, byte cs, Font font)
|
|||
void Draw::DrawText(int x, int y, int angle, const wchar *text, Font font,
|
||||
Color ink, int n, const int *dx)
|
||||
{
|
||||
#ifdef flagWINGL
|
||||
#if defined(flagWINGL) || defined(flagLINUXGL)
|
||||
if(IsNull(ink))
|
||||
return;
|
||||
DrawTextOp(x, y, angle, text, font, ink, n, dx);
|
||||
|
|
@ -221,7 +225,7 @@ void Draw::DrawText(int x, int y, const String& text, Font font, Color ink, cons
|
|||
|
||||
Size GetTextSize(const wchar *text, Font font, int n)
|
||||
{
|
||||
#ifdef flagWINGL
|
||||
#if defined(flagWINGL) || defined(flagLINUXGL)
|
||||
return GetTextSize(text, resources.GetFont(font), n);
|
||||
#else
|
||||
FontInfo fi = font.Info();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue