History

push latest updates

Sigrid Solveig Haflínudóttir committed 5 years ago

Commit b43d58c1 parent 9fb02383 files · +8 −7Browse files

Showing the changes to test.c (1 of 3 files). Show all

Unified · Split

test.c+3−2
@@ -28,11 +28,11 @@ redraw(void) · 27 unmodified lines
2828
2929 lockdisplay(display);
3030
31− draw(screen, screen->r, invert ? display->black : display->white, nil, ZP);
31+ draw(screen, screen->r, display->white, nil, ZP);
3232
3333 r = rectaddpt(screen->r, offset);
3434 r.max = screen->r.max;
35− draw(screen, r, invert ? display->white : display->black, image, ZP);
35+ draw(screen, r, fg, image, ZP);
3636
3737 r = screen->r;
3838 r.min.y = r.max.y - font->height - 4;
@@ -108,6 +108,7 @@ threadmain(int argc, char **argv) · 69 unmodified lines
108108 threadsetname("libpt");
109109 if(initdraw(nil, nil, "libpt") < 0)
110110 sysfatal("initdraw: %r");
111+ fg = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DBlack);
111112 display->locking = 1;
112113 unlockdisplay(display);
113114 if((mctl = initmouse(nil, screen)) == nil)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t