Commit Graph
49 Commits
Author SHA1 Message Date
Kovid Goyal 8116ee015a API for changing the background image of OS windows
Uses reference counting
2020-02-01 09:17:41 +05:30
Kovid Goyal fdd7fe1948 Properly release resources used by bgimage
Also allow per OS Window bg images in the future
2020-01-31 12:17:54 +05:30
Kovid Goyal 9bf24bdff5 Cleanup png_path_to_bitmap() 2020-01-31 09:46:16 +05:30
Fredrick Brennan aaaa34e119 Move a bunch of unneeded stuff 2020-01-30 18:08:25 +08:00
Fredrick Brennan 9f364209af Add background_image 2020-01-30 17:23:42 +08:00
Fredrick Brennan 8020657d8c Allow drawing images below cells w/background 2020-01-11 16:56:59 +05:30
Luflosi f3b9ff5f9f Use datatype monotonic_t instead of double to keep track of time
The time is stored in a signed 64 bit integer with nanosecond accuracy. This eliminates the possibility of floating-point inaccuracies.
`monotonic_t` can currently hold values large enough to work correctly for more than 200 years into the future.
Using a typedef instead of directly using `int64_t` everywhere will also allow easily changing the datatype in the future should the need arise for more precise or bigger time values.
2019-09-25 17:43:11 +02:00
Kovid Goyal 8daab0ba41 Change image internal_id type to id_type 2019-07-23 09:34:04 +05:30
Kovid Goyal 4fff84b4b9 Add void to all function declarations for functions that take no arguments
Micro-optimization for some architectures. Enforced via
-Wstrict-prototypes
2019-05-13 11:04:21 +05:30
Kovid Goyal 11522ccc92 Initial code to show window size in cells while resizing 2019-03-04 19:54:10 +05:30
Kovid Goyal df9eab279a Implement changing the font size for individual top level (OS) windows 2018-05-27 12:37:49 +05:30
Kovid Goyal 523aadaa3b Refactor font group handling
Allow kitty to manage multiple groups of fonts with different cell
sizes. Will eventually allow kitty to have different font sizes/dpi per
OSWindow
2018-05-27 12:37:05 +05:30
Kovid Goyal 1ef010689d Add support for clearing the scrollback buffer
kitty now supports using \E3J to clear the screen and scrollback buffer.
See #268
2018-01-06 23:55:49 +05:30
Kovid Goyal 21ed07d7ce Ensure python type objects are declared in onlya single unit 2017-11-01 13:14:50 +05:30
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 747f7b076d Implement control code for deleting images 2017-10-08 22:51:00 +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 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 952f0ad98c Accommodate the underpowered Apple lineup
macOS is missing glDrawArraysInstancedBaseInstance
2017-10-04 22:44:03 +05:30
Kovid Goyal 8f05f752af Code to update graphics buffer 2017-10-04 17:41:11 +05:30
Kovid Goyal 3f615666df Call grman_update_layers 2017-10-04 15:39:31 +05:30
Kovid Goyal 1a8d9314fe Fix transmission of chunked compressed data 2017-10-04 10:19:25 +05:30
Kovid Goyal acc43ce9dc Handle T action with chunked transfer correctly 2017-10-03 20:34:48 +05:30
Kovid Goyal c87dcdbe3c Tests for displaying graphics 2017-10-03 16:10:04 +05:30
Kovid Goyal 7c488888a0 more work on displaying graphics 2017-10-01 20:17:48 +05:30
Kovid Goyal 6d960e4130 ... 2017-10-01 09:12:14 +05:30
Kovid Goyal 3cbc20005b Implement sending of image data to GPU 2017-10-01 09:04:46 +05:30
Kovid Goyal e2a8115328 ... 2017-09-30 18:36:25 +05:30
Kovid Goyal 28ae99ed37 More work on displaying images 2017-09-30 14:46:17 +05:30
Kovid Goyal e5898ad4b0 More work on displaying images 2017-09-30 13:51:52 +05:30
Kovid Goyal b722bc809c More work on displaying images 2017-09-30 13:51:52 +05:30
Kovid Goyal 671bcafee5 Dont carry the fd around 2017-09-30 13:51:51 +05:30
Kovid Goyal dbd7ec5b27 Allow specifying the offset and size for reading data from files
Also require size to be specified for SHM objects to support platforms
such as macOS that have no way to get the size from the fd.
2017-09-30 13:51:51 +05:30
Kovid Goyal 8e5c4b6f7a Require data size to be sent for PNG format 2017-09-30 13:51:50 +05:30
Kovid Goyal b4a96428f3 DRYer 2017-09-30 13:51:50 +05:30
Kovid Goyal 9860ed544f Respond to load commands when an id is present 2017-09-30 13:51:49 +05:30
Kovid Goyal 01fb9436dd Code to read compressed and PNG encoded image data 2017-09-30 13:51:48 +05:30
Kovid Goyal df1e06ec2c DRYer 2017-09-30 13:51:48 +05:30
Kovid Goyal 9facc5f7d3 DRYer 2017-09-30 13:51:48 +05:30
Kovid Goyal 66bce4b8cd Code to read image data 2017-09-30 13:51:48 +05:30
Kovid Goyal c567acb4e5 Work on loading images 2017-09-30 13:51:48 +05:30
Kovid Goyal 8418cc04c1 Start work on the graphics manager 2017-09-30 13:51:48 +05:30
Kovid Goyal 8e64895c23 Framework for testing graphics command parsing 2017-09-30 13:51:47 +05:30
Kovid Goyal a9ed44eecc Implement decoding of graphics command payload 2017-09-30 13:51:46 +05:30
Kovid Goyal b8d9629ee4 Start work on parsing of graphics escape code 2017-09-30 13:51:46 +05:30