mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user