spark: use blitter to scale to non-720p framebuffer resolutions

Let everyone render in an offscreen buffer of 1280x720 pixels,
then blit to primary, scaling to target resolution.

This will need some calls to ->blit() sprinkled all over neutrino
which will come in a follow-up commit.
This commit is contained in:
Stefan Seyfried
2012-04-01 12:38:14 +02:00
parent 7fcd36ed66
commit ca873b609f
2 changed files with 188 additions and 139 deletions

View File

@@ -233,15 +233,11 @@ class CFrameBuffer
bool blitToPrimary(unsigned int * data, int dx, int dy, int sw, int sh);
#if HAVE_SPARK_HARDWARE
int scaleX(const int x, bool clamp = true);
int scaleY(const int y, bool clamp = true);
void resize(int format);
void update(void);
void mark(int x, int y, int dx, int dy);
void blit(void);
#else
int scaleX(const int x, bool __attribute__((unused)) clamp = true) { return x; };
int scaleY(const int y, bool __attribute__((unused)) clamp = true) { return y; };
void resize(int) {};
void update(void) {};
void mark(int, int, int, int) {};
void blit(void) {};
#endif
void paintMuteIcon(bool paint, int ax, int ay, int dx, int dy, bool paintFrame=true);