1 #include "View/DelayedDraw.h"
2 #include "DasherScreen.h"
3 #include "DasherTypes.h"
7 using namespace Dasher
;
9 void CDelayedDraw::DelayDrawText(const std::string
& str
, screenint x1
, screenint y1
, int Size
) {
10 m_DrawTextString
.push_back(CTextString(str
, x1
, y1
, Size
));
13 void CDelayedDraw::Draw(CDasherScreen
* screen
) {
14 int iSize
= m_DrawTextString
.size();
16 for(int i
= 0; i
< iSize
; i
++) {
17 CTextString
& draw
= m_DrawTextString
[i
];
18 screen
->DrawString(draw
.m_String
, draw
.m_x
, draw
.m_y
, draw
.m_iSize
);
20 m_DrawTextString
.clear();