aboutsummaryrefslogtreecommitdiff
path: root/src/CGEditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/CGEditor.cpp')
-rw-r--r--src/CGEditor.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/CGEditor.cpp b/src/CGEditor.cpp
index fadbdc8..cf405db 100644
--- a/src/CGEditor.cpp
+++ b/src/CGEditor.cpp
@@ -1,5 +1,5 @@
#include "CGEditor.hpp"
-#include <iostream>
+
namespace cgeditor {
CGEditor::CGEditor() {
@@ -180,4 +180,10 @@ std::uint8_t CGEditor::GetNAGId(const std::string& symbol) const{
return 0;
}
+void CGEditor::FocusOnMove(CMI::HalfMove* move){
+ double X,Y;
+ MT->GetMoveXY(move,X,Y);
+ SBH->Focus(X+status.MoveWidth);
+ SBV->Focus(Y+status.MoveHeight);
+}
} // namespace cgeditor