Skip to content

Commit befecd7

Browse files
committed
Attempting to add mac support for scheduling
1 parent 5ea5aa9 commit befecd7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
44
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
55
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
66

7-
project(GDIntercept VERSION 0.3.2)
7+
project(GDIntercept VERSION 0.3.3)
88

99
file(GLOB_RECURSE SOURCES "src/*.cpp")
1010
add_library(${PROJECT_NAME} SHARED ${SOURCES})

src/nodes/TracklessScrollbar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ TracklessScrollbar* TracklessScrollbar::create(const CCSize& size, ListView* lis
1515
}
1616

1717
bool TracklessScrollbar::init(const CCSize& size, ListView* list) {
18-
this->m_pScheduler->scheduleUpdateForTarget(this, 1, false);
18+
this->m_pScheduler->scheduleSelector(schedule_selector(TracklessScrollbar::update), this, 0, false);
1919

2020
if (!Scrollbar::init(list->m_tableView)) {
2121
return false;

src/nodes/lists/CodeBlock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CodeBlock* CodeBlock::create(const CCSize& size, const CCSize& buttonBarSize) {
2626
}
2727

2828
bool CodeBlock::init(const CCSize& size, const CCSize& buttonBarSize) {
29-
this->m_pScheduler->scheduleUpdateForTarget(this, 1, false);
29+
this->m_pScheduler->scheduleSelector(schedule_selector(CodeBlock::update), this, 0, false);
3030

3131
#ifdef KEYBINDS_ENABLED
3232
this->addEventListener<InvokeBindFilter>([=, this](const InvokeBindEvent* event) {

0 commit comments

Comments
 (0)