Skip to content

Commit f5f9fd2

Browse files
committed
fix duplicate function graph library
1 parent 255fa0f commit f5f9fd2

File tree

3 files changed

+104
-109
lines changed

3 files changed

+104
-109
lines changed

libCompiler/src/main/java/com/duy/pascal/backend/builtin_libraries/crt/CrtLib.java

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import com.duy.pascal.backend.runtime_exception.WrongArgsException;
2626
import com.duy.pascal.frontend.activities.ExecHandler;
2727
import com.duy.pascal.frontend.view.exec_screen.console.ConsoleCursor;
28-
import com.duy.pascal.frontend.view.exec_screen.console.ConsoleView;
2928
import com.duy.pascal.frontend.view.exec_screen.console.TextRenderer;
3029

3130
import java.util.Map;
@@ -277,32 +276,4 @@ public void textMode(int mode) {
277276
// TODO: 24-May-17
278277
}
279278

280-
281-
@PascalMethod(description = "By enabling flag (setting it to true), every graph's " +
282-
"drawing routines don't go directly to the screen, but goes to screen buffer instead. After " +
283-
"all the drawing of each \"frame\" has been done, we simply call the RedrawScreen() procedure " +
284-
"to copy the screen buffer content into the screen.")
285-
public void setBufferEnable(boolean enable) {
286-
ConsoleView consoleView = handler.getConsoleView();
287-
if (consoleView != null) {
288-
consoleView.getGraphScreen().setBufferEnable(enable);
289-
}
290-
}
291-
292-
@PascalMethod(description = "draw screen")
293-
public void drawBuffer() {
294-
ConsoleView consoleView = handler.getConsoleView();
295-
if (consoleView != null) {
296-
consoleView.getGraphScreen().bufferToPrimary();
297-
consoleView.postInvalidate();
298-
}
299-
}
300-
301-
@PascalMethod(description = "draw screen")
302-
public void clearBuffer() {
303-
ConsoleView consoleView = handler.getConsoleView();
304-
if (consoleView != null) {
305-
consoleView.getGraphScreen().clearBufferBitmap();
306-
}
307-
}
308279
}

0 commit comments

Comments
 (0)