summaryrefslogtreecommitdiff
path: root/src/fb.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2017-04-22 07:53:17 -0700
committerVito Caputo <vcaputo@pengaru.com>2017-04-22 07:53:17 -0700
commit4c6e8e280ba8f540bf1691ec1b427ad1d52401aa (patch)
tree9feba131d0530c812cb69268a3afa56dd6aa8f8b /src/fb.h
parent406495a01b1de41abc1b9240096da3741155b6fd (diff)
fb: add frame_{width,height} to fb_fragment_t
Modules need to know the overall dimensions of the frame the fragment they're rendering is part of. Previously it wasn't really necessary since the fragments supplied to the modules had always been the full page, but that's changing. This commit also changes the julia module to use the frame dimensions, others will need updating as well.
Diffstat (limited to 'src/fb.h')
-rw-r--r--src/fb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fb.h b/src/fb.h
index e8d818f..c1cee17 100644
--- a/src/fb.h
+++ b/src/fb.h
@@ -14,6 +14,8 @@ typedef struct fb_fragment_t {
uint32_t *buf; /* pointer to the first pixel in the fragment */
unsigned x, y; /* absolute coordinates of the upper left corner of this fragment */
unsigned width, height; /* width and height of this fragment */
+ unsigned frame_width; /* width of the frame this fragment is part of */
+ unsigned frame_height; /* height of the frame this fragment is part of */
unsigned stride; /* number of bytes from the end of one row to the start of the next */
} fb_fragment_t;
© All Rights Reserved