Code

Use subdirectories with icon sizes.
[inkscape.git] / src / libnr / nr-pixblock.h
index c9ccb4fc62dcdf26d5435cd998f19222ba64554c..404a0fd038b2a70e6f919344c78912670c535846 100644 (file)
@@ -63,6 +63,12 @@ NR_PIXBLOCK_PX (NRPixBlock *pb)
     return ((pb->size == NR_PIXBLOCK_SIZE_TINY) ? 
             pb->data.p : pb->data.px);
 }
+inline unsigned char const*
+NR_PIXBLOCK_PX (NRPixBlock const *pb) 
+{ 
+    return ((pb->size == NR_PIXBLOCK_SIZE_TINY) ? 
+            pb->data.p : pb->data.px);
+}
 
 void nr_pixblock_setup (NRPixBlock *pb, NR_PIXBLOCK_MODE mode, int x0, int y0, int x1, int y1, bool clear);
 void nr_pixblock_setup_fast (NRPixBlock *pb, NR_PIXBLOCK_MODE mode, int x0, int y0, int x1, int y1, bool clear);
@@ -70,6 +76,7 @@ void nr_pixblock_setup_extern (NRPixBlock *pb, NR_PIXBLOCK_MODE mode, int x0, in
 void nr_pixblock_release (NRPixBlock *pb);
 
 NRPixBlock *nr_pixblock_new (NR_PIXBLOCK_MODE mode, int x0, int y0, int x1, int y1, bool clear);
+NRPixBlock *nr_pixblock_new_fast (NR_PIXBLOCK_MODE mode, int x0, int y0, int x1, int y1, bool clear);
 NRPixBlock *nr_pixblock_free (NRPixBlock *pb);
 
 unsigned char *nr_pixelstore_4K_new (bool clear, unsigned char val);
@@ -93,4 +100,4 @@ void nr_pixelstore_1M_free (unsigned char *px);
   fill-column:99
   End:
 */
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :