mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-02 03:26:29 +03:00
PopUp Menu now response on Mouse Up instead on Click.
Renamed singleton.hpp to tsingleton.hpp for consistency. Fixed GLES rendering.
This commit is contained in:
@@ -52,7 +52,7 @@ std::wstring& cTextCache::Text() {
|
||||
}
|
||||
|
||||
void cTextCache::UpdateCoords() {
|
||||
Uint32 size = (Uint32)mText.size() * 4;
|
||||
Uint32 size = (Uint32)mText.size() * EE_QUAD_VERTEX;
|
||||
|
||||
mRenderCoords.resize( size );
|
||||
mColors.resize( size, mFontColor );
|
||||
@@ -80,7 +80,7 @@ void cTextCache::Color(const eeColorA& Color) {
|
||||
if ( mFontColor != Color ) {
|
||||
mFontColor = Color;
|
||||
|
||||
mColors.assign( mText.size() * 4, mFontColor );
|
||||
mColors.assign( mText.size() * EE_QUAD_VERTEX, mFontColor );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user