MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / TextInvert

Method TextInvert

src/Display/Lcd/Lcd.cpp:352–362  ·  view source on GitHub ↗

Select normal or inverted text

Source from the content-addressed store, hash-verified

350
351// Select normal or inverted text
352void Lcd::TextInvert(bool b) noexcept
353{
354 if (b != textInverted)
355 {
356 textInverted = b;
357 if (!justSetCursor)
358 {
359 lastCharColData = (GetFontHeight() < 32) ? (1u << GetFontHeight()) - 1 : 0xFFFFFFFF; // force a space when switching between normal and inverted text
360 }
361 }
362}
363
364// Draw a line using the Bresenham Algorithm (thanks Wikipedia)
365void Lcd::Line(PixelNumber y0, PixelNumber x0, PixelNumber y1, PixelNumber x1, bool mode) noexcept

Callers 5

ButtonMenuItem.cppFile · 0.80
ExitMethod · 0.80
UpdatingFirmwareMethod · 0.80
TextMenuItem.cppFile · 0.80
MenuItem.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected