#include <lib/base/elock.h>
#include <lib/base/message.h>
#include <lib/gdi/erect.h>
#include <lib/gdi/gpixmap.h>
#include <lib/gdi/region.h>
#include <lib/gdi/gfont.h>
#include <lib/base/elock.h>
#include <lib/base/message.h>
#include <lib/gdi/erect.h>
#include <lib/gdi/gpixmap.h>
#include <lib/gdi/region.h>
#include <lib/gdi/gfont.h>
/* gRC is the singleton which controls the fifo and dispatches commands */
class gRC: public iObject, public Object
{
/* gRC is the singleton which controls the fifo and dispatches commands */
class gRC: public iObject, public Object
{
- void submit(const gOpcode &o)
- {
- static int collected=0;
- queue.enqueue(o);
- collected++;
-// if (o.opcode==gOpcode::end||o.opcode==gOpcode::shutdown)
- {
- queuelock.unlock(collected);
-#ifdef SYNC_PAINT
- thread();
-#endif
- collected=0;
- }
- }
+ void submit(const gOpcode &o);
- void blit(gPixmap *pixmap, ePoint pos, const eRect &what=eRect(), int flags=0);
+ void blit(gPixmap *pixmap, ePoint pos, const eRect &clip=eRect(), int flags=0);
+ void blitScale(gPixmap *pixmap, const eRect &pos, const eRect &clip=eRect(), int flags=0, int aflags = BT_SCALE);
void setPalette(gRGB *colors, int start=0, int len=256);
void setPalette(gPixmap *source);
void setPalette(gRGB *colors, int start=0, int len=256);
void setPalette(gPixmap *source);
int getPixmap(ePtr<gPixmap> &pm) { pm = m_pixmap; return 0; }
gRGB getRGB(gColor col);
virtual eSize size() { return m_pixmap->size(); }
int getPixmap(ePtr<gPixmap> &pm) { pm = m_pixmap; return 0; }
gRGB getRGB(gColor col);
virtual eSize size() { return m_pixmap->size(); }