From f30c365743f0eece9622b88a835108000066b5de Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sat, 28 Jul 2007 23:01:49 +0000 Subject: [PATCH] Move more init stuff to the startup... stop moving and resizing the HTML window to follow the ANSI one... it gets old pretty fast. --- src/syncterm/htmlwin.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/syncterm/htmlwin.cpp b/src/syncterm/htmlwin.cpp index 375a4d851d..fcd4f87074 100644 --- a/src/syncterm/htmlwin.cpp +++ b/src/syncterm/htmlwin.cpp @@ -294,10 +294,15 @@ void html_thread(void *args) extern "C" { - int run_html(void(*callback)(const char *), int(*ucallback)(const char *, char *, size_t, char *, size_t)) + int run_html(int width, int height, int xpos, int ypos, void(*callback)(const char *), int(*ucallback)(const char *, char *, size_t, char *, size_t)) { output_callback=callback; url_callback=ucallback; + window_xpos=xpos==-1?wxDefaultCoord:xpos; + window_ypos=ypos==-1?wxDefaultCoord:ypos; + window_width=width==-1?640:width; + window_height=height==-1?200:height; + if(!html_thread_running) { sem_init(&appstarted, 0, 0); sem_init(&state_changed, 0, 0); @@ -359,13 +364,8 @@ extern "C" { add_html(str); } - void show_html(int width, int height, int xpos, int ypos, const char *page) + void show_html(const char *page) { - window_xpos=xpos==-1?wxDefaultCoord:xpos; - window_ypos=ypos==-1?wxDefaultCoord:ypos; - window_width=width==-1?640:width; - window_height=height==-1?200:height; - if(wxTheApp) { pthread_mutex_lock(&update_mutex); wxString wx_page(page, wxConvUTF8); -- GitLab