Text window was double-buffered, but background was still getting
erased before redraw, which caused a bit of flicker on show. And hide debug prints in solver. [git-p4: depot-paths = "//depot/solvespace/": change = 1693]
This commit is contained in:
parent
49ec1346d7
commit
aedd91735f
|
@ -207,23 +207,24 @@ bool System::NewtonSolve(int tag) {
|
||||||
|
|
||||||
bool System::Solve(void) {
|
bool System::Solve(void) {
|
||||||
int i, j;
|
int i, j;
|
||||||
|
/*
|
||||||
dbp("%d equations", eq.n);
|
dbp("%d equations", eq.n);
|
||||||
for(i = 0; i < eq.n; i++) {
|
for(i = 0; i < eq.n; i++) {
|
||||||
dbp(" %s = 0", eq.elem[i].e->Print());
|
dbp(" %s = 0", eq.elem[i].e->Print());
|
||||||
}
|
}
|
||||||
dbp("%d parameters", param.n);
|
dbp("%d parameters", param.n); */
|
||||||
|
|
||||||
param.ClearTags();
|
param.ClearTags();
|
||||||
eq.ClearTags();
|
eq.ClearTags();
|
||||||
|
|
||||||
WriteJacobian(0, 0);
|
WriteJacobian(0, 0);
|
||||||
EvalJacobian();
|
EvalJacobian();
|
||||||
|
/*
|
||||||
for(i = 0; i < mat.m; i++) {
|
for(i = 0; i < mat.m; i++) {
|
||||||
for(j = 0; j < mat.n; j++) {
|
for(j = 0; j < mat.n; j++) {
|
||||||
dbp("A[%d][%d] = %.3f", i, j, mat.A.num[i][j]);
|
dbp("A[%d][%d] = %.3f", i, j, mat.A.num[i][j]);
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
|
|
||||||
GaussJordan();
|
GaussJordan();
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,6 @@ static void PaintTextWnd(HDC hdc)
|
||||||
|
|
||||||
RECT rect;
|
RECT rect;
|
||||||
GetClientRect(TextWnd, &rect);
|
GetClientRect(TextWnd, &rect);
|
||||||
|
|
||||||
// Set up the back-buffer
|
// Set up the back-buffer
|
||||||
HDC backDc = CreateCompatibleDC(hdc);
|
HDC backDc = CreateCompatibleDC(hdc);
|
||||||
int width = rect.right - rect.left;
|
int width = rect.right - rect.left;
|
||||||
|
@ -206,6 +205,9 @@ void HandleTextWindowScrollBar(WPARAM wParam, LPARAM lParam)
|
||||||
LRESULT CALLBACK TextWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
LRESULT CALLBACK TextWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
|
case WM_ERASEBKGND:
|
||||||
|
break;
|
||||||
|
|
||||||
case WM_CLOSE:
|
case WM_CLOSE:
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
PostQuitMessage(0);
|
PostQuitMessage(0);
|
||||||
|
@ -698,8 +700,7 @@ static void CreateMainWindows(void)
|
||||||
// We get the desired Alt+Tab behaviour by specifying that the text
|
// We get the desired Alt+Tab behaviour by specifying that the text
|
||||||
// window is a child of the graphics window.
|
// window is a child of the graphics window.
|
||||||
TextWnd = CreateWindowEx(0,
|
TextWnd = CreateWindowEx(0,
|
||||||
"TextWnd", "SolveSpace (Text Window)",
|
"TextWnd", "SolveSpace (Text Window)", WS_THICKFRAME | WS_CLIPCHILDREN,
|
||||||
WS_THICKFRAME | WS_CLIPCHILDREN,
|
|
||||||
10, 10, 600, 300, GraphicsWnd, (HMENU)NULL, Instance, NULL);
|
10, 10, 600, 300, GraphicsWnd, (HMENU)NULL, Instance, NULL);
|
||||||
if(!TextWnd) oops();
|
if(!TextWnd) oops();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user