mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-12 07:53:37 +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.
Origin commit data
------------------
Commit: ca873b609f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-04-01 (Sun, 01 Apr 2012)
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