|
From: <cro...@li...> - 2005-02-05 11:10:41
|
Module Name: CFJavaEditor
Committed By: tchize
Date: Sat Feb 5 11:10:32 UTC 2005
Modified Files:
CFJavaEditor/src/cfeditor: CMapControl.java CMapViewBasic.java
CMapViewIFrame.java
Log Message:
Added backbuffering to flat renderer
Flat renderer uses a backbuffer to render.
Redraws of big maps are much faster on slow configurations.
Pickmaps are not backbuffered to prevent memory leaks.
The following files had too many changes to show the context diffs here:
cvs rdiff -r1.16 -r1.17 CFJavaEditor/src/cfeditor/CMapViewBasic.java
Start of context diffs
Index: CFJavaEditor/src/cfeditor/CMapControl.java
diff -c CFJavaEditor/src/cfeditor/CMapControl.java:1.12 CFJavaEditor/src/cfeditor/CMapControl.java:1.13
*** CFJavaEditor/src/cfeditor/CMapControl.java:1.12 Sun Jan 9 14:05:34 2005
--- CFJavaEditor/src/cfeditor/CMapControl.java Sat Feb 5 03:10:31 2005
***************
*** 361,367 ****
* Repaints the view.
*/
void repaint() {
! m_view.repaint();
}
/**
--- 361,367 ----
* Repaints the view.
*/
void repaint() {
! m_view.modelChanged();
}
/**
Index: CFJavaEditor/src/cfeditor/CMapViewIFrame.java
diff -c CFJavaEditor/src/cfeditor/CMapViewIFrame.java:1.7 CFJavaEditor/src/cfeditor/CMapViewIFrame.java:1.8
*** CFJavaEditor/src/cfeditor/CMapViewIFrame.java:1.7 Sun Jan 9 14:05:36 2005
--- CFJavaEditor/src/cfeditor/CMapViewIFrame.java Sat Feb 5 03:10:31 2005
***************
*** 126,131 ****
--- 126,132 ----
public void setHotspot(int dx, int dy) {view.setHotspot(dx, dy);}
public void printFullImage(String filename) throws java.io.IOException {view.printFullImage(filename);}
void refreshDataFromModel() {view.refreshDataFromModel();}
+ void modelChanged() {view.modelChanged();}
void changedFlagNotify() {view.changedFlagNotify();}
void setMapAndArchPosition(int archid, int x, int y) {
view.setMapAndArchPosition(archid, x, y);
|