Subversion Repositories Kolibri OS

Rev

Rev 881 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 881 Rev 885
Line 52... Line 52...
52
           pixmap->flags   = io->flags;
52
           pixmap->flags   = io->flags;
53
           pixmap->pitch   = pitch;
53
           pixmap->pitch   = pitch;
54
           pixmap->mapped  = mapped;
54
           pixmap->mapped  = mapped;
55
           pixmap->pitch_offset =  ((pitch/64)<<22)| (((u32_t)local+rhd.fbLocation)>>10);
55
           pixmap->pitch_offset =  ((pitch/64)<<22)| (((u32_t)local+rhd.fbLocation)>>10);
56
           pixmap->local   = local;
56
           pixmap->local   = local+rhd.fbLocation;
57
 
57
 
Line 58... Line 58...
58
           dbgprintf("pixmap.pitch_offset: %x\n", pixmap->pitch_offset);
58
           dbgprintf("pixmap.pitch_offset: %x\n", pixmap->pitch_offset);
59
           dbgprintf("width: %d height: %d\n",pixmap->width,pixmap->height );
59
           dbgprintf("width: %d height: %d\n",pixmap->width,pixmap->height );
60
           dbgprintf("map at %x\n", pixmap->mapped);
60
           dbgprintf("map at %x\n", pixmap->mapped);
Line 84... Line 84...
84
 
84
 
Line 85... Line 85...
85
     UnmapPages(pixmap->mapped, size);
85
     UnmapPages(pixmap->mapped, size);
86
     UserFree(pixmap->mapped);
86
     UserFree(pixmap->mapped);
Line 87... Line 87...
87
 
87
 
88
     rhd_mem_free(&rhd,RHD_MEM_FB,pixmap->local);
88
     rhd_mem_free(&rhd,RHD_MEM_FB,pixmap->local-rhd.fbLocation);
Line 89... Line 89...
89
     free(pixmap);
89
     free(pixmap);
90
 
90
 
91
     io->format  = 0;
91
     io->format  = 0;