summaryrefslogtreecommitdiff
path: root/video/compositor.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-17 22:52:28 +0200
committerMiguel <m.i@gmx.at>2018-10-17 22:52:28 +0200
commit4d1a149531bc5d672cdf4a5a3e010662f9611d61 (patch)
treea9bac45399bc2b09d927914c4bd34ff1338ea3b1 /video/compositor.c
parent474c803c32fe055b4f09cb779f22b70d7eba8325 (diff)
starting rewriting scheduling ...v0.2
Diffstat (limited to 'video/compositor.c')
-rw-r--r--video/compositor.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/video/compositor.c b/video/compositor.c
index 5826c03..e7566f2 100644
--- a/video/compositor.c
+++ b/video/compositor.c
@@ -406,7 +406,7 @@ void compositor_add_window(uint32_t addr,uint32_t pid,ringbuffer *r)
windows[0].draw_meat=true;
next_window++;
- compositor_mouse_handle(200,200,0);
+ compositor_mouse_handle(0,0,0);
}
// TODO : TEXTMODE FALLBACK!
@@ -433,6 +433,8 @@ void compositor_init(uint16_t width, uint16_t height, uint16_t depth, uint16_t p
add_icon("vim");
add_icon("vim");
add_icon("vim");
+
+ compositor_mouse_handle(200,200,0);
}
void compositor_wake()
@@ -465,8 +467,6 @@ void compositor_swap_buffers()
frames=0;
}
-
-
static bool first=true;
if(first)memcpy(VMEM_FRAMEBUFFER,bgimage,vesa_pitch*vesa_height);// TODO optimize? rects only too??
first=false;
@@ -592,7 +592,7 @@ void compositor_mouse_handle(int16_t diff_x,int16_t diff_y, uint8_t key)
if(w->posx<0)w->posx=0;
if(w->posy<0)w->posy=0;
if(w->posx+w->width>=vesa_width)w->posx=vesa_width-640;
- if(w->posy+w->height>=vesa_height)w->posy=vesa_height-480;
+ if(w->posy+w->height>=vesa_height)w->posy=vesa_height-400;
w->draw_border=true;
@@ -602,6 +602,7 @@ void compositor_mouse_handle(int16_t diff_x,int16_t diff_y, uint8_t key)
w->draw_meat=true;
if(lastkey&1)
{
+ w->draw_border=true;
uint32_t xy=(0<<16)|(0);
uint32_t wh=(640<<16)|(400);