Commit Graph

1413 Commits

Author SHA1 Message Date
Kovid Goyal
94eaaae4a6 Handle font size changes, rescaling images 2017-10-09 15:15:13 +05:30
Kovid Goyal
3cce238b2b Relayout images on screen resizes
The strategy is very simple, images are not rescaled or re-positioned in
any way.
2017-10-09 12:43:37 +05:30
Kovid Goyal
f9b52249d1 Remove unused code 2017-10-09 11:58:25 +05:30
Kovid Goyal
f396fe59ca Implement a quota for image data 2017-10-09 11:31:57 +05:30
Kovid Goyal
b4b6968e07 Clear the alt screen graphics buffer when switching away from it as well as to it 2017-10-08 23:14:56 +05:30
Kovid Goyal
747f7b076d Implement control code for deleting images 2017-10-08 22:51:00 +05:30
Kovid Goyal
3f9f5ae076 DRYer 2017-10-08 11:48:23 +05:30
Kovid Goyal
2058682d1f ... 2017-10-08 11:46:10 +05:30
Kovid Goyal
201ac973e3 Make clear as also delete images 2017-10-07 16:43:17 +05:30
Kovid Goyal
df87c051bd Add a note about the optional dep on ImageMagick for icat 2017-10-07 11:55:45 +05:30
Kovid Goyal
f76077a45c icat: switch to ImageMagick and also add support for local client speedup by using a file to transmit the data 2017-10-07 11:46:00 +05:30
Kovid Goyal
836e9d98b4 Forgot to actually switch grman on buffer switch 2017-10-07 10:12:16 +05:30
Kovid Goyal
d5088a3e5b Do image clipping using OpenGL rather than on the CPU 2017-10-07 10:08:26 +05:30
Kovid Goyal
3a344d86fe Add graphics protocol detection to icat.py 2017-10-07 09:01:31 +05:30
Kovid Goyal
6a65f23f98 Add a a=q mode for querying without storing image data 2017-10-06 23:43:42 +05:30
Kovid Goyal
9e284442e8 ... 2017-10-06 23:11:14 +05:30
Kovid Goyal
135358423c Remove use of random data in the tests 2017-10-06 22:52:50 +05:30
Kovid Goyal
31173245f8 Send ACKs to client when displaying images by id 2017-10-06 22:39:17 +05:30
Kovid Goyal
ad5a276ddb Fix test broken by clipping of images to screen area 2017-10-06 22:34:21 +05:30
Kovid Goyal
4bc852e615 A spot of refacatoring 2017-10-06 21:36:54 +05:30
Kovid Goyal
d4e493727e Clip all rendered images to screen boundaries 2017-10-06 21:22:52 +05:30
Kovid Goyal
8d3ec7451b typo 2017-10-06 21:14:39 +05:30
Kovid Goyal
652e1084bc ... 2017-10-06 21:10:45 +05:30
Kovid Goyal
a9d31541c1 Implement clipped scrolling of images when in page area mode 2017-10-06 21:08:10 +05:30
Kovid Goyal
480645877a Clear graphics when switching to the alternate screen buffer 2017-10-05 23:01:47 +05:30
Kovid Goyal
600bff73d6 Off-by-one for image visibility testing
Also delete all images that overlap the screen on reset
2017-10-05 22:54:52 +05:30
Kovid Goyal
1c9612bd55 Turn on LTO for release builds 2017-10-05 21:18:21 +05:30
Kovid Goyal
259e01e879 Add test for deleting images after they scroll off 2017-10-05 21:14:56 +05:30
Kovid Goyal
240c9b5d8b A spot of refactoring 2017-10-05 20:54:45 +05:30
Kovid Goyal
689227dce4 Scroll images with text 2017-10-05 20:23:32 +05:30
Kovid Goyal
a4e7985fb0 Condition on negative refs as well as in the future we will use interleaved drawing for background opacity as well 2017-10-05 18:21:29 +05:30
Kovid Goyal
9bd231c4f9 Note that integers in the protocol are 32-bit 2017-10-05 18:15:10 +05:30
Kovid Goyal
7bf8b3c3c1 ... 2017-10-05 18:10:11 +05:30
Kovid Goyal
57a6d53a45 Document the image display protocol 2017-10-05 18:08:12 +05:30
Kovid Goyal
49aeae4aad Fix invocation of the image cat script as kitty icat 2017-10-05 17:19:17 +05:30
Kovid Goyal
664975b707 Show off kitty's graphics capabilities 2017-10-05 16:49:34 +05:30
Kovid Goyal
c3ab6ff780 Fix vertically inverted rendering of PNG 2017-10-04 23:38:36 +05:30
Kovid Goyal
6ad7260871 Dont compress PNG files 2017-10-04 23:26:15 +05:30
Kovid Goyal
e8f72c90f3 Add note about needing S key for PNG + compression 2017-10-04 23:25:27 +05:30
Kovid Goyal
75244b1416 ... 2017-10-04 23:07:59 +05:30
Kovid Goyal
952f0ad98c Accommodate the underpowered Apple lineup
macOS is missing glDrawArraysInstancedBaseInstance
2017-10-04 22:44:03 +05:30
Kovid Goyal
c726a15ed4 ... 2017-10-04 21:08:28 +05:30
Kovid Goyal
5d6af442c1 Correctly query num of cols/rows in icat 2017-10-04 20:06:07 +05:30
Kovid Goyal
596a392e68 micro optimization 2017-10-04 19:46:19 +05:30
Kovid Goyal
46bb482e96 Fix y-axis mapping incorrect for images 2017-10-04 19:34:34 +05:30
Kovid Goyal
e9bc64205e Code (not working) to draw graphics 2017-10-04 18:29:48 +05:30
Kovid Goyal
8f05f752af Code to update graphics buffer 2017-10-04 17:41:11 +05:30
Kovid Goyal
124a41643f Add a comment about the use of layout locations 2017-10-04 17:29:30 +05:30
Kovid Goyal
138a37ccac Start work on the graphics program 2017-10-04 17:22:00 +05:30
Kovid Goyal
e1650d5df7 Implement interleaved drawing of cells 2017-10-04 16:11:20 +05:30