Minor changes in comments.

This commit is contained in:
David Capello 2010-07-17 20:44:51 -03:00
parent 1ca29538c0
commit c8ae9cbf8a
2 changed files with 9 additions and 10 deletions

View File

@ -99,7 +99,7 @@ void PlayAnimationCommand::execute(Context* context)
// Clear extras (e.g. pen preview) // Clear extras (e.g. pen preview)
sprite->destroyExtraCel(); sprite->destroyExtraCel();
/* do animation */ // Do animation
oldpal = NULL; oldpal = NULL;
speed_timer = 0; speed_timer = 0;
while (!done) { while (!done) {

View File

@ -209,11 +209,10 @@ void Editor::editor_update()
} }
/** /**
* Draws the sprite of the editor in the screen using * Draws the specified portion of sprite in the editor.
* the @ref render_sprite routine.
* *
* @warning You should setup the clip of the @ref ji_screen before to * @warning You should setup the clip of the @ref ji_screen before
* call this routine. * calling this routine.
*/ */
void Editor::editor_draw_sprite(int x1, int y1, int x2, int y2) void Editor::editor_draw_sprite(int x1, int y1, int x2, int y2)
{ {
@ -222,11 +221,11 @@ void Editor::editor_draw_sprite(int x1, int y1, int x2, int y2)
int source_x, source_y, dest_x, dest_y, width, height; int source_x, source_y, dest_x, dest_y, width, height;
int scroll_x, scroll_y; int scroll_x, scroll_y;
/* get scroll */ // Get scroll
jview_get_scroll(view, &scroll_x, &scroll_y); jview_get_scroll(view, &scroll_x, &scroll_y);
/* output information */ // Output information
source_x = x1 << m_zoom; source_x = x1 << m_zoom;
source_y = y1 << m_zoom; source_y = y1 << m_zoom;
@ -235,7 +234,7 @@ void Editor::editor_draw_sprite(int x1, int y1, int x2, int y2)
width = (x2 - x1 + 1) << m_zoom; width = (x2 - x1 + 1) << m_zoom;
height = (y2 - y1 + 1) << m_zoom; height = (y2 - y1 + 1) << m_zoom;
/* clip from viewport */ // Clip from viewport
if (dest_x < vp->x1) { if (dest_x < vp->x1) {
source_x += vp->x1 - dest_x; source_x += vp->x1 - dest_x;
@ -255,7 +254,7 @@ void Editor::editor_draw_sprite(int x1, int y1, int x2, int y2)
if (dest_y+height-1 > vp->y2-1) if (dest_y+height-1 > vp->y2-1)
height = vp->y2-dest_y; height = vp->y2-dest_y;
/* clip from screen */ // Clip from screen
if (dest_x < ji_screen->cl) { if (dest_x < ji_screen->cl) {
source_x += ji_screen->cl - dest_x; source_x += ji_screen->cl - dest_x;
@ -275,7 +274,7 @@ void Editor::editor_draw_sprite(int x1, int y1, int x2, int y2)
if (dest_y+height-1 >= ji_screen->cb) if (dest_y+height-1 >= ji_screen->cb)
height = ji_screen->cb-dest_y; height = ji_screen->cb-dest_y;
/* clip from sprite */ // Clip from sprite
if (source_x < 0) { if (source_x < 0) {
width += source_x; width += source_x;