mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 10:00:23 +00:00
Remove some SDL stuff that was dead weight
This commit is contained in:
parent
8a5d7e7eea
commit
61cb34f635
|
@ -28,8 +28,6 @@
|
|||
#define QB64_GUI
|
||||
#endif
|
||||
|
||||
#define NO_S_D_L
|
||||
|
||||
//core
|
||||
#ifdef QB64_GUI
|
||||
#ifdef QB64_GLUT
|
||||
|
|
3296
internal/c/libqb.cpp
3296
internal/c/libqb.cpp
File diff suppressed because it is too large
Load diff
|
@ -105,29 +105,6 @@ if (isHardware){
|
|||
}
|
||||
|
||||
return i;
|
||||
|
||||
|
||||
#ifndef NO_S_D_L
|
||||
static qbs *tqbs=NULL,*nullt=NULL;
|
||||
static int32 i;
|
||||
if (new_error) return 0;
|
||||
//validate bpp
|
||||
if (passed){
|
||||
if ((bpp!=32)&&(bpp!=256)){error(5); return 0;}
|
||||
}else{
|
||||
if (write_page->text){error(5); return 0;}
|
||||
bpp=-1;
|
||||
}
|
||||
if (!f->len) return -1;//return invalid handle if null length string
|
||||
if (!tqbs) tqbs=qbs_new(0,0);
|
||||
if (!nullt){nullt=qbs_new(1,0); nullt->chr[0]=0;}
|
||||
qbs_set(tqbs,qbs_add(f,nullt));
|
||||
i=imgload(fixdir(tqbs),bpp);
|
||||
if (!i) return -1;//failed
|
||||
return -i;
|
||||
return -1;
|
||||
#endif //NO_S_D_L
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1021,7 +1021,6 @@ sub_close(NULL,NULL);//closes all open files
|
|||
//free images
|
||||
freeallimages();
|
||||
//stop & free sounds (note: QB also stops any sound from the PLAY command)
|
||||
//NO_S_D_L//sndcloseall();
|
||||
//invalidate RETURN location(s)
|
||||
next_return_point=0;
|
||||
//reset error goto location to 'unhandled'
|
||||
|
|
|
@ -9515,7 +9515,6 @@ DO
|
|||
IF a3$ = "" THEN a3$ = a2$ ELSE a3$ = a3$ + sp + a2$
|
||||
NEXT
|
||||
PRINT #12, "skip" + u$ + ":"
|
||||
PRINT #12, "revert_input_check();"
|
||||
IF stringprocessinghappened THEN PRINT #12, cleanupstringprocessingcall$ + "0);"
|
||||
layoutdone = 1: IF LEN(layout$) THEN layout$ = layout$ + sp + l$ ELSE layout$ = l$
|
||||
GOTO finishedline
|
||||
|
|
Loading…
Reference in a new issue