home *** CD-ROM | disk | FTP | other *** search
- #include "DeskLib:WimpSWIs.h"
- #include "DeskLib:Sound.h"
-
- #include "Shell.Shell.h"
-
- #include "AddsRedraw.h"
- #include "Structs.h"
-
-
-
- void AddsRedrawer(
- Shell_convertpoint convert,
- wimp_point rectsize,
- void *reference,
- const wimp_rect *redrawrect
- )
- {
- app_block *app = (app_block *) reference;
- int i, minpos, maxpos, minaddress, maxaddress;
-
- UNUSED( rectsize);
- /*
- Wimp_SetColour( colour_ORANGE);
- Shell_RectangleFill2( 0, 0, rectsize.x, rectsize.y, convert);
- */
-
- minpos = (redrawrect->min.y) * app->words_per_os + app->min_mem;
- maxpos = (redrawrect->max.y+Shell_TEXTYSIZE) * app->words_per_os + app->min_mem;
-
- minaddress = (minpos / app->address_step) * app->address_step;
- maxaddress = ((maxpos+app->address_step-1) / app->address_step) * app->address_step;
-
- while ( minaddress<app->min_mem) minaddress+= app->address_step;
- while ( maxaddress>app->max_mem) maxaddress-= app->address_step;
-
- Wimp_SetColour( colour_BLACK);
-
- for ( i=minaddress; i<= maxaddress; i+=app->address_step) {
- char text[ 32];
- sprintf( text, "0x%x_", i);
- Shell_PrintString( text, 0, Shell_TEXTYSIZE-Shell_PIXELYSIZE+(i-app->min_mem)/app->words_per_os, convert);
- }
-
- return;
- }
-
-