mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-31 01:11:13 +02:00
GLFB: add video aspect ratio handling
This commit is contained in:
@@ -46,6 +46,8 @@ private:
|
||||
fb_var_screeninfo screeninfo;
|
||||
int mX; /* window size */
|
||||
int mY;
|
||||
float mVA; /* video aspect ratio */;
|
||||
|
||||
bool mReInit; /* setup things for GL */
|
||||
bool mShutDown; /* if set main loop is left */
|
||||
bool mInitDone; /* condition predicate */
|
||||
@@ -71,7 +73,7 @@ private:
|
||||
void setupGLObjects(); /* PBOs, textures and stuff */
|
||||
void releaseGLObjects();
|
||||
// void drawCube(float size); /* cubes are the building blocks of our society */
|
||||
void drawSquare(float size); /* do not be square */
|
||||
void drawSquare(float size, float x_factor = 1); /* do not be square */
|
||||
|
||||
struct {
|
||||
int width; /* width and height, fixed for a framebuffer instance */
|
||||
|
Reference in New Issue
Block a user