Rewrote tgi_load_driver in assembler and fixed a possible memory leak when
doing so. Changed the behaviour in case a driver is already loaded: Since the library cannot know if this driver was linked statically or loaded dynamically, an already installed driver is considered an error. It must be removed before calling tgi_load_driver. git-svn-id: svn://svn.cc65.org/cc65/trunk@5790 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
;* */
|
||||
;* */
|
||||
;* */
|
||||
;* (C) 2002-2009, Ullrich von Bassewitz */
|
||||
;* (C) 2002-2012, Ullrich von Bassewitz */
|
||||
;* Roemerstrasse 52 */
|
||||
;* D-70794 Filderstadt */
|
||||
;* EMail: uz@cc65.org */
|
||||
@@ -45,6 +45,7 @@
|
||||
TGI_ERR_INV_FONT ; Font file is invalid
|
||||
TGI_ERR_NO_RES ; Out of resources (memory, handles, ...)
|
||||
TGI_ERR_UNKNOWN ; Unknown error
|
||||
TGI_ERR_INSTALLED ; A driver is already installed
|
||||
|
||||
TGI_ERR_COUNT ; Special: Number of error messages
|
||||
.endenum
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
;* */
|
||||
;* */
|
||||
;* */
|
||||
;* (C) 2002-2009, Ullrich von Bassewitz */
|
||||
;* (C) 2002-2012, Ullrich von Bassewitz */
|
||||
;* Roemerstrasse 52 */
|
||||
;* D-70794 Filderstadt */
|
||||
;* EMail: uz@cc65.org */
|
||||
@@ -170,6 +170,7 @@ TGI_CLIP_TOP = $08
|
||||
;------------------------------------------------------------------------------
|
||||
; ASM functions
|
||||
|
||||
.global tgi_clear_ptr
|
||||
.global tgi_clippedline
|
||||
.global tgi_curtoxy
|
||||
.global tgi_getset
|
||||
|
||||
Reference in New Issue
Block a user