Skip to content

Commit bf586e7

Browse files
authored
Merge pull request #1 from cschreib/v1.2
Merge v1.2
2 parents fe63104 + 249a1a8 commit bf586e7

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

gui/impl/gui/gl/src/gui_gl_font.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ font::font(const std::string& sFontFile, uint uiSize) : bKerning_(false)
6767
iMaxBearingY = mFace->glyph->metrics.horiBearingY;
6868

6969
int iCharWidth = std::max(
70-
mFace->glyph->bitmap.width + int(mFace->glyph->metrics.horiBearingX >> 6),
70+
int(mFace->glyph->bitmap.width) + int(mFace->glyph->metrics.horiBearingX >> 6),
7171
int(mFace->glyph->advance.x >> 6)
7272
);
7373

@@ -133,8 +133,8 @@ font::font(const std::string& sFontFile, uint uiSize) : bKerning_(false)
133133
{
134134
int iYBearing = iMaxBearingY - (mFace->glyph->metrics.horiBearingY >> 6);
135135

136-
for (int j = 0; j < mFace->glyph->bitmap.rows; ++j)
137-
for (int i = 0; i < mFace->glyph->bitmap.width; ++i, ++sBuffer)
136+
for (int j = 0; j < int(mFace->glyph->bitmap.rows); ++j)
137+
for (int i = 0; i < int(mFace->glyph->bitmap.width); ++i, ++sBuffer)
138138
pTexture_->set_pixel(x + i + uiXBearing, y + j + iYBearing, ub32color(255, 255, 255, *sBuffer));
139139
}
140140

gui/src/gui_slider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ void slider::set_max_value(float fMax)
234234
if (fMax != fMaxValue_)
235235
{
236236
fMaxValue_ = fMax;
237-
if (fMaxValue_ < fMaxValue_) fMaxValue_ = fMinValue_;
237+
if (fMaxValue_ < fMinValue_) fMaxValue_ = fMinValue_;
238238
else step_value(fMaxValue_, fValueStep_);
239239

240240
if (fValue_ > fMaxValue_)

gui/src/gui_statusbar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void status_bar::set_max_value(float fMax)
124124
if (fMax != fMaxValue_)
125125
{
126126
fMaxValue_ = fMax;
127-
if (fMaxValue_ < fMaxValue_) fMaxValue_ = fMinValue_;
127+
if (fMaxValue_ < fMinValue_) fMaxValue_ = fMinValue_;
128128
fValue_ = fValue_ > fMaxValue_ ? fMaxValue_ : (fValue_ < fMinValue_ ? fMinValue_ : fValue_);
129129
fire_update_bar_texture_();
130130
}

gui/src/gui_uiobject.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ bool uiobject::is_visible() const
259259

260260
void uiobject::set_abs_dimensions(uint uiAbsWidth, uint uiAbsHeight)
261261
{
262-
if (uiAbsWidth_ != uiAbsWidth || !bIsWidthAbs_ || uiAbsHeight_ != uiAbsHeight || !bIsWidthAbs_)
262+
if (uiAbsWidth_ != uiAbsWidth || !bIsWidthAbs_ ||
263+
uiAbsHeight_ != uiAbsHeight || !bIsHeightAbs_)
263264
{
264265
pManager_->notify_object_moved();
265266
bIsWidthAbs_ = true;

luapp/src/luapp_state.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,6 @@ std::string state::get_type_name(type mType)
784784
void state::get_global(const std::string& sName)
785785
{
786786
std::deque<std::string> lDecomposedName;
787-
std::string sVarName;
788787
utils::string_vector lWords = utils::cut(sName, ":");
789788
utils::string_vector::iterator iter1;
790789
foreach (iter1, lWords)

0 commit comments

Comments
 (0)