Skip to content

Commit

Permalink
fix gcc2 build (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
korli authored Mar 18, 2024
1 parent f760ff5 commit 1b8abf6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/AlarmWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ int AlarmWindow :: GetTime(int element) {

// Variables
struct tm *now;
bigtime_t time_value;
time_t time_value;

// Initialize tm struct and time_t value
now = NULL;
Expand Down
4 changes: 3 additions & 1 deletion source/ColorWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
#include <Catalog.h>
#include <TranslationUtils.h>

static const rgb_color sBgColor = {255,240,113};

#undef B_TRANSLATION_CONTEXT
#define B_TRANSLATION_CONTEXT "ColorWindow"

Expand Down Expand Up @@ -105,7 +107,7 @@ void ColorWindow :: MessageReceived (BMessage* message) {

// It answer to an REVERT request
case BUTTON_REVERT: {
fColorControl->SetValue(gBgColor);
fColorControl->SetValue(sBgColor);
this->PostMessage(COLOR_CHANGED);
}
break;
Expand Down
2 changes: 0 additions & 2 deletions source/ColorWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ class ColorWindow : public BWindow {
virtual bool QuitRequested();
virtual void MessageReceived(BMessage*);
virtual void Quit();
const rgb_color gBgColor = {255,240,113};


private:

Expand Down
3 changes: 2 additions & 1 deletion source/NoteWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ NoteWindow::_CreateNoteView(void)
fNoteView->AddChild(fScrollView);

//load color read from the settings file which was loaded in fSettingsMessage
fNoteView->SetBackgroundColor(note_app->fSettingsMessage->GetColor("def_color", {255,240,113}));
rgb_color color = {255,240,113};
fNoteView->SetBackgroundColor(note_app->fSettingsMessage->GetColor("def_color", color));

if(!fSaveMessage)
MoveTo(200+(note_app->fWindowCount*20),200+( note_app->fWindowCount*20));
Expand Down

0 comments on commit 1b8abf6

Please sign in to comment.