Remove DosShell
This commit is contained in:
parent
4eaf0ac4c3
commit
e56fe128e0
|
@ -164,7 +164,6 @@ int PropagateTexturesSelected();
|
|||
int medlisp_add_segment();
|
||||
int AttachSegment();
|
||||
int DeleteSegment();
|
||||
int DosShell();
|
||||
int CallLisp();
|
||||
int ExitEditor();
|
||||
int ShowAbout();
|
||||
|
|
|
@ -221,8 +221,6 @@ const FUNCTION med_functions[] = {
|
|||
{ "med-segment-delete", 0, medlisp_delete_segment },
|
||||
{ "med-segment-scale", 3, medlisp_scale_segment },
|
||||
{ "med-segment-rotate", 3, medlisp_rotate_segment },
|
||||
{ "med-dos-shell", 0, DosShell },
|
||||
//{ "med-lisp-call", 0, CallLisp },
|
||||
{ "med-editor-exit", 0, ExitEditor },
|
||||
{ "med-segment-exchange", 0, ExchangeMarkandCurseg },
|
||||
{ "med-segment-mark", 0, CopySegToMarked },
|
||||
|
|
|
@ -612,36 +612,6 @@ int FindConcaveSegs()
|
|||
return 1;
|
||||
}
|
||||
|
||||
int DosShell()
|
||||
{
|
||||
int ok, w, h;
|
||||
|
||||
ok = 1;
|
||||
|
||||
// Save the current graphics state.
|
||||
|
||||
w = grd_curscreen->sc_canvas.cv_bitmap.bm_w;
|
||||
h = grd_curscreen->sc_canvas.cv_bitmap.bm_h;
|
||||
|
||||
grs_bitmap_ptr save_bitmap = gr_create_bitmap( w, h );
|
||||
gr_bm_ubitblt(w, h, 0, 0, 0, 0, &(grd_curscreen->sc_canvas.cv_bitmap), save_bitmap.get());
|
||||
|
||||
// gr_set_mode( SM_ORIGINAL );
|
||||
|
||||
fflush(stdout);
|
||||
|
||||
key_close();
|
||||
#ifdef __MSDOS__
|
||||
ok = spawnl(P_WAIT,getenv("COMSPEC"), NULL );
|
||||
#endif
|
||||
key_init();
|
||||
|
||||
gr_set_mode(grd_curscreen->sc_mode);
|
||||
gr_bm_ubitblt(w, h, 0, 0, 0, 0, save_bitmap.get(), &(grd_curscreen->sc_canvas.cv_bitmap));
|
||||
//gr_use_palette_table();
|
||||
return ok;
|
||||
}
|
||||
|
||||
static int ToggleOutlineMode()
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
|
|
Loading…
Reference in a new issue