mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-10-27 06:20:50 +00:00
int to pointer conversion fix.
enable fltk lock/unlock multi threading support. git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/HxCFloppyEmulator_software/trunk@1856 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69
This commit is contained in:
1 parent
029ea9f24f
commit
8ddcaa975a
1 file changed
+5
-1
@@ -846,11 +846,14 @@ Main_Window::Main_Window()
|
||||
char * temp;
|
||||
infothread * infoth;
|
||||
USBStats stats;
|
||||
intptr_t tmp_intptr;
|
||||
|
||||
txtindex=0;
|
||||
i=0;
|
||||
evt_txt=0;
|
||||
|
||||
// First lock() call to Enable lock/unlock threads support.
|
||||
Fl::lock();
|
||||
|
||||
guicontext->loading = 0;
|
||||
guicontext->exporting = 0;
|
||||
@@ -889,7 +892,8 @@ Main_Window::Main_Window()
|
||||
{
|
||||
txt_buttons_main[i].button = new Fl_Button(BUTTON_XPOS, BUTTON_YPOS+(BUTTON_YSTEP*j), BUTTON_XSIZE, BUTTON_YSIZE, getString(txt_buttons_main[i].label_id));
|
||||
txt_buttons_main[i].button->labelsize(12);
|
||||
txt_buttons_main[i].button->callback(bt_clicked,(void*)i);
|
||||
tmp_intptr = i;
|
||||
txt_buttons_main[i].button->callback(bt_clicked,(void*)tmp_intptr);
|
||||
|
||||
Fl_Box *box = new Fl_Box(FL_NO_BOX,BUTTON_XPOS+BUTTON_XSIZE,BUTTON_YPOS+(BUTTON_YSIZE/4)+(BUTTON_YSTEP*j),BUTTON_XSIZE*4,BUTTON_YSIZE/2,getString(txt_buttons_main[i].desc_id));
|
||||
box->align(FL_ALIGN_INSIDE|FL_ALIGN_LEFT);
|
||||
|
||||
Reference in new issue
Block a user