mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-18 10:13:24 +03:00
Clean up doxygen errors in image handlers.
This commit is contained in:
parent
fcadb1f6f8
commit
010306e1ad
@ -34,6 +34,7 @@
|
||||
#include "image/bitmap.h"
|
||||
#include "image/bmp.h"
|
||||
|
||||
/** bmp context. */
|
||||
typedef struct nsbmp_content {
|
||||
struct content base;
|
||||
|
||||
@ -47,8 +48,8 @@ typedef struct nsbmp_content {
|
||||
*
|
||||
* \param width width of image in pixels
|
||||
* \param height width of image in pixels
|
||||
* \param state a flag word indicating the initial state
|
||||
* \return an opaque struct bitmap, or NULL on memory exhaustion
|
||||
* \param bmp_state A flag word indicating the initial state
|
||||
* \return An opaque struct bitmap, or NULL on memory exhaustion
|
||||
*/
|
||||
static void *nsbmp_bitmap_create(int width, int height, unsigned int bmp_state)
|
||||
{
|
||||
|
@ -305,7 +305,8 @@ static bool nsgif_convert(struct content *c)
|
||||
/**
|
||||
* Updates the GIF bitmap to display the current frame
|
||||
*
|
||||
* \param c the content to update
|
||||
* \param gif The gif context to update.
|
||||
* \return GIF_OK on success else apropriate error code.
|
||||
*/
|
||||
static gif_result nsgif_get_frame(nsgif_content *gif)
|
||||
{
|
||||
@ -317,10 +318,11 @@ static gif_result nsgif_get_frame(nsgif_content *gif)
|
||||
current_frame = 0;
|
||||
}
|
||||
|
||||
if (current_frame < gif->gif->decoded_frame)
|
||||
if (current_frame < gif->gif->decoded_frame) {
|
||||
previous_frame = 0;
|
||||
else
|
||||
} else {
|
||||
previous_frame = gif->gif->decoded_frame + 1;
|
||||
}
|
||||
|
||||
for (frame = previous_frame; frame <= current_frame; frame++) {
|
||||
res = gif_decode_frame(gif->gif, frame);
|
||||
|
@ -45,7 +45,7 @@ typedef struct nsico_content {
|
||||
*
|
||||
* \param width width of image in pixels
|
||||
* \param height width of image in pixels
|
||||
* \param state a flag word indicating the initial state
|
||||
* \param bmp_state A flag word indicating the initial state
|
||||
* \return an opaque struct bitmap, or NULL on memory exhaustion
|
||||
*/
|
||||
static void *nsico_bitmap_create(int width, int height, unsigned int bmp_state)
|
||||
|
Loading…
Reference in New Issue
Block a user