diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-14 11:48:54 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-14 11:48:54 (GMT) |
commit | bea3337108fa5b59b8f6fdbe016d5ed6a6300bc6 (patch) | |
tree | 517abf46e76b2a6cc8ddb3ac2dec5ffacc28a128 /src/glibext/linegen.c | |
parent | e0af5dc9c01a5b9649c68ec63109ba98b6843329 (diff) |
Begun to switch to abstract locations in internal rendering buffers.
Diffstat (limited to 'src/glibext/linegen.c')
-rw-r--r-- | src/glibext/linegen.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/glibext/linegen.c b/src/glibext/linegen.c index 6675646..c61fa63 100644 --- a/src/glibext/linegen.c +++ b/src/glibext/linegen.c @@ -88,9 +88,9 @@ size_t g_line_generator_count_lines(const GLineGenerator *generator) * * * Paramètres : generator = générateur à consulter. * * x = position géographique sur la ligne concernée. * -* addr = position en mémoire à analyser. * * index = indice de cette même ligne dans le tampon global.* * repeat = indice d'utilisations successives du générateur. * +* cursor = emplacement à constituer. [OUT] * * * * Description : Retrouve l'emplacement correspondant à une position donnée. * * * @@ -100,7 +100,7 @@ size_t g_line_generator_count_lines(const GLineGenerator *generator) * * ******************************************************************************/ -void g_line_generator_compute_addr(const GLineGenerator *generator, gint x, vmpa2t *addr, size_t index, size_t repeat) +void g_line_generator_compute_cursor(const GLineGenerator *generator, gint x, size_t index, size_t repeat, GLineCursor **cursor) { GLineGeneratorIface *iface; /* Interface utilisée */ @@ -111,7 +111,7 @@ void g_line_generator_compute_addr(const GLineGenerator *generator, gint x, vmpa assert(repeat < g_line_generator_count_lines(generator)); #endif - iface->compute(generator, x, addr, index, repeat); + iface->compute(generator, x, index, repeat, cursor); } @@ -119,9 +119,9 @@ void g_line_generator_compute_addr(const GLineGenerator *generator, gint x, vmpa /****************************************************************************** * * * Paramètres : generator = générateur à consulter. * -* addr = position en mémoire à analyser. * * index = indice de cette même ligne dans le tampon global.* * repeat = indice d'utilisations successives du générateur. * +* cursor = emplacement à analyser. * * * * Description : Détermine si le conteneur s'inscrit dans une plage donnée. * * * @@ -131,7 +131,7 @@ void g_line_generator_compute_addr(const GLineGenerator *generator, gint x, vmpa * * ******************************************************************************/ -int g_line_generator_contains_addr(const GLineGenerator *generator, const vmpa2t *addr, size_t index, size_t repeat) +int g_line_generator_contains_cursor(const GLineGenerator *generator, size_t index, size_t repeat, const GLineCursor *cursor) { GLineGeneratorIface *iface; /* Interface utilisée */ @@ -142,7 +142,7 @@ int g_line_generator_contains_addr(const GLineGenerator *generator, const vmpa2t assert(repeat < g_line_generator_count_lines(generator)); #endif - return iface->contains(generator, addr, index, repeat); + return iface->contains(generator, index, repeat, cursor); } |