mirror of https://github.com/stella-emu/stella.git
Fixed minor graphical glitch when showing error messages
in the ROM launcher. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2539 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
8228639ec8
commit
7fa87e9098
|
@ -220,7 +220,7 @@ void FBSurfaceGL::setWidth(uInt32 w)
|
|||
// and it's the only thing that uses it
|
||||
if(myImageW != w)
|
||||
{
|
||||
myImageW = w;
|
||||
myImageW = BSPF_min(w, (uInt32)myTexWidth);
|
||||
myTexCoordW = (GLfloat) myImageW / myTexWidth;
|
||||
updateCoords();
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ void FBSurfaceGL::setHeight(uInt32 h)
|
|||
// and it's the only thing that uses it
|
||||
if(myImageH != h)
|
||||
{
|
||||
myImageH = h;
|
||||
myImageH = BSPF_min(h, (uInt32)myTexHeight);
|
||||
myTexCoordH = (GLfloat) myImageH / myTexHeight;
|
||||
updateCoords();
|
||||
}
|
||||
|
|
|
@ -802,13 +802,13 @@ void FBSurfaceSoft::setPos(uInt32 x, uInt32 y)
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void FBSurfaceSoft::setWidth(uInt32 w)
|
||||
{
|
||||
myWidth = w;
|
||||
myWidth = BSPF_min(w, (uInt32)mySurface->w);
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void FBSurfaceSoft::setHeight(uInt32 h)
|
||||
{
|
||||
myHeight = h;
|
||||
myHeight = BSPF_min(h, (uInt32)mySurface->h);
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include <cstdlib>
|
||||
|
||||
#define STELLA_VERSION "3.7.2"
|
||||
#define STELLA_VERSION "3.7.3_svn"
|
||||
#define STELLA_BUILD atoi("$Rev$" + 6)
|
||||
|
||||
#endif
|
||||
|
|
|
@ -180,7 +180,7 @@ FBInitStatus FrameBuffer::initialize(const string& title,
|
|||
}
|
||||
if(myMsg.surface == NULL)
|
||||
{
|
||||
myMsg.surfaceID = allocateSurface(500, myOSystem->font().getFontHeight()+10);
|
||||
myMsg.surfaceID = allocateSurface(640, myOSystem->font().getFontHeight()+10);
|
||||
myMsg.surface = surface(myMsg.surfaceID);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue