Skip to content

Commit

Permalink
1. ACTL_REDRAWALL теперь перерисовывает всё.
Browse files Browse the repository at this point in the history
  • Loading branch information
zg0 committed Jan 8, 2015
1 parent ec977cf commit a520f78
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
6 changes: 5 additions & 1 deletion far/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
drkns 08.01.2015 22:22:57 +0200 - build 4234
zg 09.01.2015 00:44:51 +0200 - build 4235

1. ACTL_REDRAWALL теперь перерисовывает всё.

drkns 08.01.2015 22:22:57 +0200 - build 4234

1. Рефакторинг.

Expand Down
8 changes: 8 additions & 0 deletions far/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ BOOL Manager::ExitAll()
return TRUE;
}

void Manager::RefreshAll(void)
{
if (!m_windows.empty())
{
RefreshWindow(m_windows.front());
}
}

void Manager::CloseAll()
{
_MANAGER(CleverSysLog clv(L"Manager::CloseAll()"));
Expand Down
1 change: 1 addition & 0 deletions far/manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class Manager: noncopyable
void ExecuteModal(window_ptr Executed);
//! Çàïóñêàåò íåìîäàëüíîå îêíî â ìîäàëüíîì ðåæèìå
void ExecuteNonModal(window_ptr NonModal);
void RefreshAll(void);
void CloseAll();
/* $ 29.12.2000 IS
Àíàëîã CloseAll, íî ðàçðåøàåò ïðîäîëæåíèå ïîëíîöåííîé ðàáîòû â ôàðå,
Expand Down
4 changes: 2 additions & 2 deletions far/plugapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,9 +747,9 @@ intptr_t WINAPI apiAdvControl(const GUID* PluginId, ADVANCED_CONTROL_COMMANDS Co

case ACTL_REDRAWALL:
{
int Ret = Global->WindowManager->ProcessKey(Manager::Key(KEY_CONSOLE_BUFFER_RESIZE));
Global->WindowManager->RefreshAll();
Global->WindowManager->PluginCommit();
return Ret;
return TRUE;
}

case ACTL_SETPROGRESSSTATE:
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
m4_define(BUILD,4234)m4_dnl
m4_define(BUILD,4235)m4_dnl

0 comments on commit a520f78

Please sign in to comment.