void OsdOpenGL::InitVertexBuffer(float scalex,float scaley)\r
{\r
Video* video=Video::getInstance();\r
- float texx=((float)video->getScreenWidth())/1024.f;\r
- float texy=((float)video->getScreenHeight())/1024.f;\r
+ float texx=1.f;//((float)video->getScreenWidth())/1024.f;\r
+ float texy=1.f;((float)video->getScreenHeight())/1024.f;\r
OSDCOLOR osdcolor={1.f,1.f,1.f,1.f};\r
\r
// osdvertices[0].c=osdcolor;\r
\r
\r
if (this == screen) { // We do not need locking here, since the osd calls this\r
- sheight = 64;\r
- swidth = 64;\r
- while (sheight < height) { // should be a power of 2\r
- sheight *= 2;\r
- }\r
- while (swidth < width) { // should be a power of 2\r
- swidth *= 2;\r
- }\r
+\r
+ swidth=width;\r
+ sheight=height;\r
glGenTextures(1, &gltexture);\r
\r
glBindTexture(GL_TEXTURE_2D, gltexture);\r