Replaced TGI_ERR_NO_MEM by TGI_ERR_NO_RES
git-svn-id: svn://svn.cc65.org/cc65/trunk@4467 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -157,8 +157,8 @@ search: tax
|
||||
sbc #$10
|
||||
bcs search
|
||||
|
||||
; No free IOCB
|
||||
lda #TGI_ERR_NO_IOCB
|
||||
; Out of resources
|
||||
nores: lda #TGI_ERR_NO_RES
|
||||
sta error
|
||||
rts
|
||||
|
||||
@@ -169,15 +169,10 @@ found: ; Check if enough RAM is available
|
||||
lda RAMTOP
|
||||
sbc #>mem_needed
|
||||
cmp APPMHI + 1
|
||||
bcc nomem
|
||||
bcc nores
|
||||
bne switch
|
||||
cpy APPMHI
|
||||
bcs switch
|
||||
|
||||
; No memory
|
||||
nomem: lda #TGI_ERR_NO_MEM
|
||||
sta error
|
||||
rts
|
||||
bcc nores
|
||||
|
||||
; Switch into graphics mode
|
||||
switch: lda #OPEN
|
||||
|
||||
@@ -51,6 +51,6 @@ msg4: .asciiz "Mode not supported by driver"
|
||||
msg5: .asciiz "Invalid function argument"
|
||||
msg6: .asciiz "Function not supported"
|
||||
msg7: .asciiz "Invalid font file"
|
||||
msg8: .asciiz "Out of memory"
|
||||
msg8: .asciiz "Out of resources"
|
||||
msg9: .asciiz "Unknown error"
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ const tgi_vectorfont* __fastcall__ tgi_load_vectorfont (const char* name)
|
||||
Font = malloc (H.size);
|
||||
if (Font == 0) {
|
||||
/* Out of memory */
|
||||
tgi_error = TGI_ERR_NO_MEM;
|
||||
tgi_error = TGI_ERR_NO_RES;
|
||||
goto LoadError;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user