Skip to content

Commit

Permalink
Reduce padding in structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Nov 24, 2023
1 parent 3c8699f commit a012c39
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scintilla/src/CallTip.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ class CallTip {
int NextTabPos(int x) const noexcept;

public:
bool inCallTipMode;
Window wCallTip;
Window wDraw;
bool inCallTipMode;
Sci::Position posStartCallTip;
ColourRGBA colourBG;
ColourRGBA colourUnSel;
Expand Down
4 changes: 2 additions & 2 deletions scintilla/src/EditModel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ Caret::Caret() noexcept :
EditModel::EditModel() : durationWrapOneUnit(0.01 / 64), durationWrapOneThread(0.01 / 16) {
inOverstrike = false;
trackLineWidth = false;
hasFocus = false;
primarySelection = true;
xOffset = 0;
posDrag = SelectionPosition(Sci::invalidPosition);
braces[0] = Sci::invalidPosition;
braces[1] = Sci::invalidPosition;
bracesMatchStyle = StyleBraceBad;
highlightGuideColumn = 0;
hasFocus = false;
primarySelection = true;
imeInteraction = IMEInteraction::Windowed;
bidirectional = Bidirectional::Disabled;
foldFlags = FoldFlag::None;
Expand Down
4 changes: 2 additions & 2 deletions scintilla/src/EditModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class EditModel {
Document *pdoc;
bool inOverstrike;
bool trackLineWidth;
bool hasFocus;
bool primarySelection;
int xOffset; ///< Horizontal scrolled amount in pixels

SpecialRepresentations reprs;
Expand All @@ -32,8 +34,6 @@ class EditModel {
Sci::Position braces[2];
int bracesMatchStyle;
int highlightGuideColumn;
bool hasFocus;
bool primarySelection;
Selection sel;

Scintilla::IMEInteraction imeInteraction;
Expand Down
2 changes: 1 addition & 1 deletion scintilla/src/EditView.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ class LineTabstops;
*/
class EditView final {
public:
PrintParameters printParameters;
std::unique_ptr<LineTabstops> ldTabstops;
int tabWidthMinimumPixels;

Expand Down Expand Up @@ -101,6 +100,7 @@ class EditView final {

LineLayoutCache llc;
PositionCache posCache;
PrintParameters printParameters;

int tabArrowHeight; // draw arrow heads this many pixels above/below line midpoint
/** Some platforms, notably PLAT_CURSES, do not support Scintilla's native
Expand Down
4 changes: 2 additions & 2 deletions scintilla/src/XPM.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ void XPM::Init(const char *const *linesForm) {

for (int c = 0; c < nColours; c++) {
const char *colourDef = linesForm[c + 1];
const char code = colourDef[0];
const unsigned char code = colourDef[0];
colourDef += 4;
ColourRGBA colour(0, 0, 0);
if (*colourDef == '#') {
colour = ColourFromHex(colourDef + 1);
} else {
codeTransparent = code;
}
colourCodeTable[static_cast<unsigned char>(code)] = colour;
colourCodeTable[code] = colour;
}

for (int y = 0; y < height; y++) {
Expand Down
2 changes: 1 addition & 1 deletion scintilla/src/XPM.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class XPM final {
int height = 1;
int width = 1;
int nColours = 1;
int codeTransparent = ' ';
std::vector<unsigned char> pixels;
ColourRGBA colourCodeTable[256];
char codeTransparent = ' ';
ColourRGBA ColourFromCode(int ch) const noexcept;
void FillRun(Surface *surface, int code, int startX, int y, int x) const;
public:
Expand Down

0 comments on commit a012c39

Please sign in to comment.