framebuffer_ng: implement libsigc++ usage

this is the framebuffer part of upstream commit 0146511f
This commit is contained in:
Stefan Seyfried
2016-10-22 11:45:16 +02:00
parent ec9ee6358c
commit 8f5f8781e6
2 changed files with 5 additions and 1 deletions

View File

@@ -508,6 +508,7 @@ void CFrameBuffer::paletteSet(struct fb_cmap *map)
realcolor[i] = make16color(cmap.red[i], cmap.green[i], cmap.blue[i], cmap.transp[i],
rl, ro, gl, go, bl, bo, tl, to);
}
OnAfterSetPallette();
}
void CFrameBuffer::paintHLineRelInternal2Buf(const int& x, const int& dx, const int& y, const int& box_dx, const fb_pixel_t& col, fb_pixel_t* buf)

View File

@@ -35,6 +35,8 @@
#include <map>
#include <vector>
#include <sigc++/signal.h>
#define fb_pixel_t uint32_t
typedef struct fb_var_screeninfo t_fb_var_screeninfo;
@@ -75,7 +77,7 @@ typedef struct gradientData_t
class CFbAccel;
/** Ausfuehrung als Singleton */
class CFrameBuffer
class CFrameBuffer : public sigc::trackable
{
friend class CFbAccel;
private:
@@ -314,6 +316,7 @@ class CFrameBuffer
void doPaintMuteIcon(bool mode) { do_paint_mute_icon = mode; }
/* blit() is unnecessary, but here to avoid patches to the neutrino code */
void blit(void) {}
sigc::signal<void> OnAfterSetPallette;
};
#endif