MCPcopy Create free account
hub / github.com/SpartanJ/eepp / fontSizeReset

Method fontSizeReset

src/eepp/ui/uicodeeditor.cpp:3767–3775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3765}
3766
3767void UICodeEditor::fontSizeReset() {
3768 if ( setInternalFontSize( mFontSize ) ) {
3769 Float line = mScroll.y / getLineHeight();
3770 Float col = mScroll.x / getGlyphWidth();
3771 updateLongestLineWidth();
3772 setScrollY( getLineHeight() * line );
3773 setScrollX( getGlyphWidth() * col );
3774 }
3775}
3776
3777const bool& UICodeEditor::getShowWhitespaces() const {
3778 return mShowWhitespaces;

Callers 1

zoomResetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected